a3web/front/webpack.config.js

20 lines
375 B
JavaScript
Raw Normal View History

2020-02-15 09:59:12 +00:00
const path = require('path');
module.exports = {
entry: './index.js',
output: {
filename: 'index.js',
path: path.resolve(__dirname, '../static/'),
},
2020-02-15 10:20:14 +00:00
module: {
rules: [
2020-02-16 00:38:15 +00:00
{ test: /\.css$/, loader: 'style-loader!css-loader' },
2020-02-15 10:20:14 +00:00
{
2020-02-16 00:38:15 +00:00
test: /\.png$/,
loader: 'url-loader',
query: { mimetype: 'image/png' }
}
]
2020-02-15 10:20:14 +00:00
}
2020-02-15 09:59:12 +00:00
};