
/public is now volatile, any changes to templates should be made in /src and then run either “npm run build” or “npm run builder”
15 lines
292 B
JavaScript
15 lines
292 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
entry: './src/js/index.js',
|
|
output: {
|
|
path: path.resolve(__dirname, 'public/'),
|
|
filename: 'bundle.js'
|
|
},
|
|
devtool: 'source-map',
|
|
module: {
|
|
loaders: [
|
|
{ test: /\.css$/, loader: 'style-loader!css-loader' }
|
|
]
|
|
}
|
|
}
|