web2019/webpack.config.js

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"
};