Chore: use dart-sass instead of node-sass

This commit is contained in:
Dreamacro 2019-03-03 19:39:30 +08:00
parent 8c89cafb36
commit 11f3b206c9
3 changed files with 12140 additions and 12967 deletions

View File

@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin")
const HtmlWebpackPlugin = require('html-webpack-plugin')
// const OfflinePlugin = require('offline-plugin')
const autoprefixer = require('autoprefixer')
const Fiber = require('fibers')
const devMode = process.env.NODE_ENV !== 'production'
module.exports = {
@ -39,7 +40,7 @@ module.exports = {
devMode ? 'style-loader' : MiniCssExtractPlugin.loader,
{ loader: 'css-loader', options: { importLoaders: 1 } },
{ loader: 'postcss-loader', options: { plugins: [autoprefixer] } },
'sass-loader',
{ loader: 'sass-loader', options: { implementation: require('sass'), fiber: Fiber } }
],
},
{

4587
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -46,6 +46,7 @@
"babel-loader": "^8.0.5",
"babel-preset-minify": "^0.5.0",
"css-loader": "^2.1.0",
"fibers": "^3.1.1",
"file-loader": "^3.0.1",
"html-webpack-plugin": "^3.2.0",
"image-webpack-loader": "^4.6.0",
@ -54,6 +55,7 @@
"postcss-loader": "^3.0.0",
"react-addons-test-utils": "^15.6.2",
"react-hot-loader": "^4.7.1",
"sass": "^1.17.2",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"stylelint": "^9.10.1",
@ -80,7 +82,6 @@
"mobx": "^5.9.0",
"mobx-react": "^5.4.3",
"mobx-react-router": "^4.0.5",
"node-sass": "^4.11.0",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-i18next": "^7.12.0",