Explorar el Código

改用postcss-scss解析scss

fenggang hace 5 años
padre
commit
1251756c13

+ 3 - 2
2019专题/云顶之弈模拟器/package.json

@@ -12,8 +12,8 @@
 	"scripts": {
 		"bundle": "webpack --config webpack.dev.js",
 		"dev": "webpack-dev-server --config webpack.dev.js",
-    "build": "webpack --config webpack.prod.js",
-    "build:test": "webpack --config webpack.prod.js --env.test",
+		"build": "webpack --config webpack.prod.js",
+		"build:test": "webpack --config webpack.prod.js --env.test",
 		"analyse": "webpack --config webpack.prod.js --env.analyse --env.test"
 	},
 	"repository": {
@@ -30,6 +30,7 @@
 	"dependencies": {
 		"@babel/polyfill": "^7.4.3",
 		"jquery": "^3.4.1",
+		"postcss-scss": "^2.0.0",
 		"vue": "^2.6.10",
 		"webpack-cli": "^3.3.0"
 	},

+ 1 - 0
2019专题/云顶之弈模拟器/postcss.config.js

@@ -1,4 +1,5 @@
 module.exports = {
+  parser: 'postcss-scss',
   plugins: [
     require('autoprefixer')()
   ]