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.
|
|
|
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)',
|
|
|
|
},
|
|
|
|
*/
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
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,
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
}
|