webpack.dll.conf.js 相关代码
const dllWebpackConf = {
entry: {
vendor: ['vue/dist/vue.esm.js']
},
output: {
filename: '[name].dll.js',path: path.resolve(__dirname, '../dist/dll'),library: '[name]'
},
plugins: [
new Webpack.DllPlugin({ path: path.join(__dirname, '../dist/dll', '[name]-manifest.json'), name: '[name]'})
]
}
执行脚本
webpack ---mode=none --config build/webpack.dll.conf.js
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production'
to enable defaults for each environment.
12345678_0001
狐的传说
相关分类