Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const vsg = require('vue-styleguidist')
const merge = require('webpack-merge')
const configSchemaImport = require('vue-styleguidist/lib/scripts/schemas/config')
const configSchema = configSchemaImport.default || configSchemaImport
const styleguidist = vsg.default || vsg
module.exports = (api, options) => {
api.configureWebpack(() => ({
// make sure that the docs blocks
// are ignored during normal serve & build
module: {
rules: [
{
resourceQuery: /blockType=docs/,
loader: 'null-loader'
}
]
}
}))
api.registerCommand(