Skip to content

Commit

Permalink
🏗️ delete scss config from webapck and delete node-scss and scss loader
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondYuan committed Jan 11, 2020
1 parent fb7903b commit 343638c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 479 deletions.
1 change: 0 additions & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
version-git-message "chore(release): %s :tada:"
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@
"less": "^3.8.1",
"less-loader": "^5.0.0",
"lint-staged": "^9.5.0",
"node-sass": "^4.12.0",
"pre-commit": "^1.2.2",
"prettier": "^1.19.1",
"pump": "^3.0.0",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"terser-webpack-plugin": "^2.3.1",
"ts-import-plugin": "^1.5.5",
Expand Down
22 changes: 1 addition & 21 deletions webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = {
pageActions: resolve('src/actions'),
extensions: resolve('src/extensions/'),
},
extensions: ['.ts', '.tsx', '.js', 'scss', 'less'],
extensions: ['.ts', '.tsx', '.js', 'less'],
},
module: {
rules: [
Expand Down Expand Up @@ -162,26 +162,6 @@ module.exports = {
},
],
},
{
exclude: /node_modules/,
test: [/\.scss$/, /\.css$/],
use: [
{
loader: 'style-loader',
},
{
loader: 'css-loader',
options: {
modules: true,
camelCase: true,
localIdentName: '[path][name]__[local]--[hash:base64:5]',
},
},
{
loader: 'sass-loader',
},
],
},
],
},
plugins: [
Expand Down
Loading

0 comments on commit 343638c

Please sign in to comment.