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.

40 lines
1.0 KiB

2 years ago
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
module: {
rules: [
{
test: /\.sxml$/,
use: [
'html-loader',
{
loader: 'sxml-loader',
/*
options: {
interpreter: 'guile',
flags: ['-c'],
expr: '(use-modules (sxml simple))(sxml->xml SXML_LOADER_CONTENT)',
},
*/
},
],
2 years ago
},
],
},
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,
}),
],
}