UNPKG

zoro-cli

Version:

36 lines (33 loc) 1.43 kB
const config = require('zoro-kit/lib/webpack.config')({ // vue project vue: true, // if multi entry, set the entry dir entryDir: './src/js/entry', // js output path, which will be append to output.path(which is dist) // the default value is 'js', which means the js files will be placed in dir dist/js jsOutputPath: 'js', // css output path, which will be append to output.path(which is dist) // the default value is 'css', which means the css files will be placed in dir dist/css cssOutputPath: 'css', // html output path, which will be append to output.path(which is dist) // the default value is 'html', which means the html files will be placed in dir dist/html htmlOutputPath: 'html', // html context, which will be used to decide the output name of html file // the default value is 'src/html', it means if you have a html file src/html/user/profile/index.html // it will be placed at dist/${htmlOutputPath}/user/profile/index.html htmlContext: 'src/html', // file loader options for html, if you config this, htmlOutputPath and htmlContext will be ignored // fileLoaderOptionsForHtml: { // name: '[name].[ext]' // }, // if enable CommonsChunkPlugin common: true, // if enable Hot Module Replacement hot: true, // if enable devtool // devtool: false, // extra config to merge config: {} }); // console.log(JSON.stringify(config, null, 4)); module.exports = config;