You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
395 B
JavaScript
22 lines
395 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
entry: './index.js',
|
|
output: {
|
|
filename: 'bundle.js',
|
|
path: path.resolve(__dirname, '../app/static')
|
|
},
|
|
module: {
|
|
rules: [{
|
|
test: /\.js$/,
|
|
use: ['babel-loader']
|
|
}, {
|
|
test: /\.css$/,
|
|
use: ['style-loader', 'css-loader']
|
|
}, {
|
|
test: /\.(png|jpg|gif)$/,
|
|
use: ['url-loader']
|
|
}]
|
|
}
|
|
}
|