Pack web_src/js/draw.js to public/js/index.js (#8975)
* pack web_src/js/draw.js to public/js/index.js * fix eslint
This commit is contained in:
parent
06a8504c78
commit
42ada741e3
8 changed files with 20 additions and 27 deletions
|
@ -4,12 +4,12 @@ const TerserPlugin = require('terser-webpack-plugin');
|
|||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: {
|
||||
index: './web_src/js/index.js',
|
||||
index: ['./web_src/js/index', './web_src/js/draw']
|
||||
},
|
||||
devtool: 'source-map',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'public/js'),
|
||||
filename: '[name].js'
|
||||
filename: 'index.js'
|
||||
},
|
||||
optimization: {
|
||||
minimize: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue