Skip to content

Commit

Permalink
build(webpack): alias to empty scss for preimported component styles
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
leomp12 committed Apr 3, 2020
1 parent a5543ec commit 7149f7c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Empty file.
13 changes: 13 additions & 0 deletions @ecomplus/storefront-template/storefront.webpack.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
const path = require('path')
const emptyScss = path.resolve(__dirname, '__fixtures__/empty.scss')

module.exports = {
externals: {
// imported from CDN
vue: 'Vue',
jquery: '$',
'popper.js': 'Popper'
},
resolve: {
alias: {
// components SCSS directly imported to styles.scss
'./scss/APicture.scss': emptyScss,
'./scss/APrices.scss': emptyScss,
'./scss/ProductCard.scss': emptyScss,
'./scss/TheProduct.scss': emptyScss
}
}
}

0 comments on commit 7149f7c

Please sign in to comment.