This repository was archived by the owner on Aug 8, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +35
-16
lines changed Expand file tree Collapse file tree 4 files changed +35
-16
lines changed Original file line number Diff line number Diff line change 3
3
[
4
4
" @babel/preset-env" ,
5
5
{
6
- "useBuiltIns" : false ,
7
6
"corejs" : 3 ,
8
7
"modules" : false ,
9
8
"loose" : false ,
10
9
"targets" : {
11
10
"browsers" : [
12
- " >1%" ,
13
- " not dead" ,
14
- " not op_mini all" ,
15
- " not ie <= 11"
11
+ " > 0.4%" ,
12
+ " not IE 11" ,
13
+ " not OperaMini all" ,
14
+ " not IE_Mob 11" ,
15
+ " edge >= 12" ,
16
+ " chrome >= 30" ,
17
+ " Samsung > 9.2" ,
18
+ " chromeandroid >= 58" ,
19
+ " android >= 10" ,
20
+ " ff >= 60" ,
21
+ " safari >= 11.1" ,
22
+ " ios >= 11.1" ,
23
+ " opera >= 62"
16
24
]
17
25
}
18
26
}
23
31
" @babel/plugin-transform-runtime" ,
24
32
{
25
33
"helpers" : false ,
26
- "corejs" : false ,
27
34
"regenerator" : true ,
28
35
"useESModules" : false ,
29
36
"version" : " 7.0.0-beta.0" ,
Original file line number Diff line number Diff line change 1
- defaults
2
- not IE 11
3
- not IE_Mob 11
4
- maintained node versions
1
+ > 0.4% ,
2
+ not IE 11 ,
3
+ not OperaMini all ,
4
+ not IE_Mob 11 ,
5
+ edge >= 12 ,
6
+ chrome >= 30 ,
7
+ Samsung > 9.2 ,
8
+ chromeandroid >= 58 ,
9
+ android >= 10 ,
10
+ ff >= 60 ,
11
+ safari >= 11.1 ,
12
+ ios >= 11.1 ,
13
+ opera >= 62
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
5
5
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
6
6
const TerserJSPlugin = require ( 'terser-webpack-plugin' ) ;
7
7
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
8
- const BundleAnalyzerPlugin = require ( 'webpack-bundle-analyzer' ) . BundleAnalyzerPlugin ;
9
8
10
9
module . exports = {
11
10
entry : [
@@ -123,7 +122,6 @@ module.exports = {
123
122
]
124
123
} ,
125
124
plugins : [
126
- new BundleAnalyzerPlugin ( ) ,
127
125
new MiniCssExtractPlugin ( {
128
126
filename : 'css/main.[hash:4].css' ,
129
127
chunkFilename : 'css/[name].[hash:4].css'
Original file line number Diff line number Diff line change @@ -54,10 +54,15 @@ module.exports = {
54
54
} ,
55
55
{
56
56
test : / \. c s s $ / i,
57
- loader : 'css-loader' ,
58
- options : {
59
-
60
- } ,
57
+ use : [
58
+ {
59
+ loader : MiniCssExtractPlugin . loader ,
60
+ options : {
61
+ publicPath : '../' ,
62
+ }
63
+ } ,
64
+ 'css-loader'
65
+ ]
61
66
} ,
62
67
{
63
68
test : / \. s ( c | a ) s s $ / ,
You can’t perform that action at this time.
0 commit comments