File tree Expand file tree Collapse file tree 7 files changed +59
-67
lines changed Expand file tree Collapse file tree 7 files changed +59
-67
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"cSpell.enabledLanguageIds" : [
3
+ " json" ,
4
+ " jsonc" ,
3
5
" markdown" ,
4
6
" plaintext" ,
5
7
" shellscript" ,
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ module.exports = {
88
88
89
89
#### vue.config.js
90
90
91
- If your Vue project does not yet contain * [ vue.config.js] ( https://cli.vuejs.org/config/ ) * , please create one in the same
91
+ If your ** Vue** project does not yet contain * [ vue.config.js] ( https://cli.vuejs.org/config/ ) * , please create one in the same
92
92
folder as * package.json* . Otherwise, please adapt accordingly:
93
93
94
94
``` js
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 0.1" ,
3
- "language" : " en" ,
4
- "words" : [
5
- " Andreas" ,
6
- " codebeat" ,
7
- " unstyled"
8
- ],
9
- "flagWords" : [],
10
- "dictionaries" : [
11
- " css" ,
12
- " typescript"
13
- ],
14
- "ignorePaths" : [
15
- " **/*.svg" ,
16
- " dist/**" ,
17
- " node_modules/**" ,
18
- " package.json" ,
19
- " package-lock.json" ,
20
- " tsconfig.json"
21
- ]
2
+ "version" : " 0.1" ,
3
+ "language" : " en" ,
4
+ "words" : [
5
+ " Andreas" ,
6
+ " codebeat" ,
7
+ " unstyled"
8
+ ],
9
+ "flagWords" : [],
10
+ "dictionaries" : [
11
+ " css" ,
12
+ " typescript"
13
+ ],
14
+ "ignorePaths" : [
15
+ " **/*.svg" ,
16
+ " dist/**" ,
17
+ " node_modules/**" ,
18
+ " package.json" ,
19
+ " package-lock.json" ,
20
+ " tsconfig.json"
21
+ ]
22
22
}
Original file line number Diff line number Diff line change 23
23
"main" : " dist/AsyncCssPlugin.js" ,
24
24
"types" : " dist/AsyncCssPlugin.d.ts" ,
25
25
"scripts" : {
26
- "prebuild" : " npm run lint" ,
27
- "build" : " webpack --mode production" ,
28
26
"prelint" : " cspell '**/*.*' && markdownlint *.md" ,
29
27
"lint" : " tslint --project tsconfig.json --config tslint.json --format verbose" ,
28
+ "prebuild" : " npm run lint" ,
29
+ "build" : " webpack --mode production" ,
30
30
"ci" : " npm run build"
31
31
},
32
32
"devDependencies" : {
33
33
"@types/html-webpack-plugin" : " ^3.2.2" ,
34
34
"@types/webpack" : " ^4.4.35" ,
35
35
"cspell" : " ^4.0.46" ,
36
- "markdownlint-cli" : " ^0.21 .0" ,
37
- "terser-webpack-plugin" : " ^2.3.4 " ,
36
+ "markdownlint-cli" : " ^0.22 .0" ,
37
+ "terser-webpack-plugin" : " ^2.3.5 " ,
38
38
"ts-loader" : " ^6.2.1" ,
39
39
"tslint" : " ^6.0.0" ,
40
40
"typescript" : " ^3.7.5" ,
41
- "webpack" : " ^4.41.5 " ,
42
- "webpack-cli" : " ^3.3.10 "
41
+ "webpack" : " ^4.41.6 " ,
42
+ "webpack-cli" : " ^3.3.11 "
43
43
},
44
44
"dependencies" : {},
45
45
"peerDependencies" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- // Compilation options
3
+ "declaration" : true ,
4
4
"forceConsistentCasingInFileNames" : true ,
5
- "moduleResolution " : " node " ,
5
+ "lib " : [] ,
6
6
"noFallthroughCasesInSwitch" : true ,
7
7
"noImplicitReturns" : true ,
8
- "strict" : true ,
9
- // Generation options
10
- "declaration" : true ,
11
8
"outDir" : " ./dist/" ,
12
9
"sourceMap" : true ,
13
- "target" : " es2015"
10
+ "strict" : true ,
11
+ "target" : " es2017"
14
12
}
15
- }
13
+ }
Original file line number Diff line number Diff line change 1
1
const path = require ( "path" ) ;
2
- const TerserPlugin = require ( ' terser-webpack-plugin' ) ;
2
+ const TerserPlugin = require ( " terser-webpack-plugin" ) ;
3
3
4
4
module . exports = {
5
5
// cSpell: ignore devtool
6
- devtool : ' source-map' ,
6
+ devtool : " source-map" ,
7
7
entry : "./src/AsyncCssPlugin.ts" ,
8
8
module : {
9
9
rules : [
10
10
{
11
- test : / \. t s $ / ,
12
11
use : "ts-loader" ,
13
- exclude : / n o d e _ m o d u l e s / ,
14
12
} ,
15
13
] ,
16
14
} ,
@@ -23,17 +21,11 @@ module.exports = {
23
21
optimization : {
24
22
minimizer : [
25
23
new TerserPlugin ( {
26
- cache : true ,
27
- parallel : true ,
28
- sourceMap : true ,
29
24
terserOptions : {
30
25
keep_classnames : true // We're using the class name in log output
31
26
}
32
27
} ) ,
33
28
] ,
34
29
} ,
35
- resolve : {
36
- extensions : [ ".ts" ] ,
37
- } ,
38
30
target : "node"
39
31
} ;
You can’t perform that action at this time.
0 commit comments