remove sass loader and add yarn lock file.

This commit is contained in:
Simba
2021-02-04 23:59:29 +08:00
parent ab12cf138c
commit 1f6d6ccf3c
4 changed files with 9181 additions and 47 deletions
-1
View File
@@ -21,7 +21,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
# Editor directories and files
.idea
-45
View File
@@ -432,51 +432,6 @@ module.exports = function (webpackEnv) {
},
}),
},
// Opt-in support for SASS (using .scss or .sass extensions).
// By default we support SASS Modules with the
// extensions .module.scss or .module.sass
{
test: sassRegex,
exclude: sassModuleRegex,
use: getStyleLoaders(
{
importLoaders: 3,
sourceMap: isEnvProduction && shouldUseSourceMap,
},
{
loader: "sass-loader",
options: {
sourceMap: true,
},
}
),
// Don't consider CSS imports dead code even if the
// containing package claims to have no side effects.
// Remove this when webpack adds a warning or an error for this.
// See https://github.com/webpack/webpack/issues/6571
sideEffects: true,
},
// Adds support for CSS Modules, but using SASS
// using the extension .module.scss or .module.sass
{
test: sassModuleRegex,
use: getStyleLoaders(
{
importLoaders: 3,
sourceMap: isEnvProduction && shouldUseSourceMap,
modules: {
getLocalIdent: getCSSModuleLocalIdent,
},
},
{
loader: "sass-loader",
options: {
sourceMap: true,
},
}
),
},
// less-loader by zicla
{
test: lessRegex,
-1
View File
@@ -90,7 +90,6 @@
"prettier": "^2.0.5",
"resolve": "1.15.0",
"resolve-url-loader": "3.1.1",
"sass-loader": "8.0.2",
"style-loader": "0.23.1",
"terser-webpack-plugin": "2.3.5",
"typescript": "~3.7.2",
+9181
View File
File diff suppressed because it is too large Load Diff