build sass files

This commit is contained in:
lawl 2020-03-30 12:30:07 +02:00
parent 4277844fac
commit 23881329ae
2 changed files with 13 additions and 2 deletions

View file

@ -42,7 +42,7 @@
"node-sass": "^4.9.3",
"raw-loader": "^4.0.0",
"regexp-replace-loader": "1.0.1",
"sass-loader": "^4.1.1",
"sass-loader": "^8.0.2",
"stream-chunker": "^1.2.8",
"subworkers": "^1.0.1",
"to-arraybuffer": "^1.0.1",

View file

@ -8,7 +8,9 @@ module.exports = {
'./app/index.js',
'./app/index.html'
],
config: './app/config.js'
config: './app/config.js',
theme: './app/theme.js',
matrix: './app/matrix.js'
},
output: {
path: path.join(__dirname, 'dist'),
@ -55,6 +57,15 @@ module.exports = {
'css-loader'
]
},
{
test: /\.scss$/,
use: [
'file-loader?name=[hash].css',
'extract-loader',
'css-loader',
'sass-loader'
]
},
{
type: 'javascript/auto',
test: /manifest\.json$|\.xml$/,