|
@@ -3,11 +3,11 @@ const webpack = require('webpack');
|
|
|
|
|
|
module.exports = {
|
|
|
mode: 'development',
|
|
|
- entry: './app/static/js/index.js',
|
|
|
+ entry: './app/static/js/index.js',
|
|
|
output: {
|
|
|
filename: 'main.js',
|
|
|
path: path.resolve(__dirname, 'app/static/js'),
|
|
|
- publicPath: 'static/js'
|
|
|
+ publicPath: 'static/js'
|
|
|
},
|
|
|
plugins: [
|
|
|
new webpack.ProvidePlugin({
|
|
@@ -21,25 +21,25 @@ module.exports = {
|
|
|
}
|
|
|
},
|
|
|
module: {
|
|
|
- rules: [
|
|
|
- {
|
|
|
- test: /\.js$/,
|
|
|
- exclude: /node_modules/,
|
|
|
- use: {
|
|
|
- loader: 'babel-loader',
|
|
|
- options: {
|
|
|
- presets: ['@babel/preset-env']
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ test: /\.js$/,
|
|
|
+ exclude: /node_modules/,
|
|
|
+ use: {
|
|
|
+ loader: 'babel-loader',
|
|
|
+ options: {
|
|
|
+ presets: ['@babel/preset-env']
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
+ ]
|
|
|
},
|
|
|
module: {
|
|
|
- rules: [
|
|
|
- {
|
|
|
- test: /\.css$/,
|
|
|
- use: ['style-loader', 'css-loader']
|
|
|
- }
|
|
|
- ]
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ test: /\.css$/,
|
|
|
+ use: ['style-loader', 'css-loader']
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
};
|