Skip to content

Commit 2b8ed08

Browse files
author
谢明
committed
fix: 调试路由
1 parent 17c4047 commit 2b8ed08

File tree

10 files changed

+946
-15840
lines changed

10 files changed

+946
-15840
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
"jsx-a11y",
1919
"react"
2020
],
21+
"rules": {
22+
"prettier/prettier": 0
23+
},
2124
"settings": {
2225
"import/resolver": {
2326
"webpack": {

config/webpack.config.common.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,30 @@ module.exports = {
2323
test: /\.html$/,
2424
loader: 'html-loader'
2525
},
26+
{
27+
test: /\.css$/,
28+
use: ExtractTextPlugin.extract({
29+
fallback: {
30+
loader: 'style-loader',
31+
options: {sourceMap: IS_DEV}
32+
},
33+
use: [
34+
{
35+
loader: 'css-loader',
36+
options: {
37+
localIdentName: IS_DEV ? '[path]-[name]_[local]' : '[name]_[local]_[hash:5]', // [hash:base64]
38+
modules: true,
39+
sourceMap: IS_DEV,
40+
minimize: !IS_DEV
41+
}
42+
},
43+
{
44+
loader: 'postcss-loader',
45+
options: {sourceMap: IS_DEV}
46+
}
47+
]
48+
})
49+
},
2650
{
2751
test: /\.s?css$/,
2852
use: ExtractTextPlugin.extract({
@@ -42,7 +66,9 @@ module.exports = {
4266
},
4367
{
4468
loader: 'sass-loader',
45-
options: {sourceMap: IS_DEV}
69+
options: {
70+
sourceMap: IS_DEV
71+
}
4672
},
4773
{
4874
loader: 'postcss-loader',

0 commit comments

Comments
 (0)