Replace less with scss

This commit is contained in:
Tyler Long
2018-03-09 16:23:35 +08:00
parent 7c970d6ff0
commit 0a7829fcfe
34 changed files with 926 additions and 605 deletions

View File

@@ -21,12 +21,12 @@ const jsRule = {
}
}
const lessRule = { // load less to string
test: /\.less$/,
const scssRule = { // load scss to string
test: /\.scss$/,
use: [
{ loader: 'css-to-string-loader' },
{ loader: 'css-loader' },
{ loader: 'less-loader' }
{ loader: 'sass-loader' }
]
}
@@ -48,7 +48,7 @@ export const jsConfig = () => {
libraryExport: 'default'
},
module: {
rules: [lodashRule, jsRule, lessRule]
rules: [lodashRule, jsRule, scssRule]
},
devtool: 'source-map'
}