You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
451 B
23 lines
451 B
2 years ago
|
'use strict';
|
||
|
|
||
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: path.resolve(__dirname, 'src/index.js'),
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, 'assets'),
|
||
|
filename: 'bundle.js'
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
exclude: /node_modules/,
|
||
|
use: {
|
||
|
loader: 'babel-loader'
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
};
|