npm install sham-ui-templates-loader --save
module.exports = {
...
module: {
rules: [
{
test: /\.sht$/,
loader: 'sham-ui-templates-loader'
},
{
test: /\.sfc$/,
use: [
{ loader: 'babel-loader' },
{
loader: 'sham-ui-templates-loader',
options: {
asModule: false,
asSingleFileComponent: true
}
}
]
}
]
},
...
};
Add sham-ui
section to your webpack.config.js
:
'sham-ui': {
globals: ['window'],
transforms: [...]
}