web2019/webpack.config.js

23 lines
455 B
JavaScript

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