web2019/webpack.config.js
Egor Savkin 85429b64f8 Add webpack
Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-07-10 16:32:09 +08:00

21 lines
498 B
JavaScript

const path = require('path');
module.exports = {
entry: './static/js/shop.min.js', // change this to your entry point
output: {
path: path.resolve(__dirname, './static/js'), // change this to your output path
filename: 'shop.bundle.js'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: 'babel-loader'
}
]
},
devtool: false,
mode: "production"
};