Make sure we merge webpack rules properly

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-07-10 10:06:21 +02:00
parent ad51857e54
commit 4d3c06af6d
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 5 additions and 4 deletions

View File

@ -10,9 +10,10 @@ module.exports = {
module: {
rules: [
{
test: /\.handlebars$/,
test: /\.handlebars/,
loader: "handlebars-loader",
options: {
query: {
extensions: '.handlebars',
helperDirs: path.join(__dirname, 'src/hbs_helpers'),
}
}

View File

@ -32,7 +32,7 @@ module.exports = []
workflowengine
)
.map(config =>
merge(config, {
merge.smart({
module: {
rules: [
{
@ -81,5 +81,5 @@ module.exports = []
},
extensions: ['*', '.js', '.vue', '.json']
}
})
}, config)
);