forked from M-Labs/web2019
20 lines
493 B
JavaScript
20 lines
493 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: 'source-map' // optional
|
|
};
|