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.
28 lines
638 B
28 lines
638 B
2 years ago
|
const path = require('path');
|
||
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||
|
|
||
|
module.exports = {
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.sxml$/,
|
||
|
use: ['html-loader', 'sxml-loader'],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
resolveLoader: {
|
||
|
alias: {
|
||
|
'sxml-loader': path.resolve(__dirname, '../src/loader.js'),
|
||
|
},
|
||
|
},
|
||
|
plugins: [
|
||
|
new HtmlWebpackPlugin({
|
||
|
inject: 'body',
|
||
|
scriptLoading: 'blocking',
|
||
|
template: 'src/index.sxml',
|
||
|
filename: 'index.html',
|
||
|
minify: false,
|
||
|
}),
|
||
|
],
|
||
|
}
|