forked from M-Labs/web2019
28 lines
591 B
JavaScript
28 lines
591 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'
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.js', '.jsx'],
|
|
},
|
|
//devtool: "inline-source-map",
|
|
//mode: "development"
|
|
devtool: false,
|
|
mode: "production"
|
|
};
|