File tree 5 files changed +25
-137
lines changed
5 files changed +25
-137
lines changed Original file line number Diff line number Diff line change 34
34
"url" : " https://github.com/openfl/starling.git"
35
35
},
36
36
"scripts" : {
37
- "build" : " npm run build-lib && npm run build-dist && npm run build-swc && npm run build-docs " ,
37
+ "build" : " npm run build-lib && npm run build-dist && npm run build-swc" ,
38
38
"build-dist" : " npm run build-dist:dev && npm run build-dist:prod" ,
39
39
"build-dist:dev" : " webpack --config webpack.dev.js" ,
40
40
"build-dist:prod" : " webpack --config webpack.prod.js" ,
48
48
"watch" : " watch \" echo watch: Compiling... && npm run build-lib -s && echo watch: Compiled successfully.\" ./src ./scripts ./node_modules/openfl/src"
49
49
},
50
50
"devDependencies" : {
51
- "@apache-royale/royale-js" : " ^0.9.3" ,
52
- "haxe" : " ^5.0.10" ,
51
+ "@apache-royale/royale-js" : " 0.9.8" ,
52
+ "brotli-webpack-plugin" : " ^1.1.0" ,
53
+ "compression-webpack-plugin" : " ^10.0.0" ,
54
+ "haxe" : " ^5.2.1" ,
53
55
"hxgenjs" : " kevinresol/hxgenjs" ,
54
- "typedoc" : " ^0.9.0" ,
55
- "typescript" : " ^2.7.1" ,
56
- "uglifyjs-webpack-plugin" : " ^1.1.6" ,
56
+ "typedoc" : " ^0.11.1" ,
57
+ "typescript" : " ^5.0.4" ,
57
58
"watch" : " ^1.0.2" ,
58
- "webpack" : " ^3.10.0" ,
59
- "webpack-merge" : " ^4.1.1"
59
+ "webpack" : " ^5.79.0" ,
60
+ "webpack-cli" : " ^5.0.1" ,
61
+ "webpack-merge" : " ^5.8.0"
60
62
},
61
- "dependencies " : {
62
- "openfl" : " ^8.1.1"
63
+ "peerDependencies " : {
64
+ "openfl" : " ^8.1.1 || ^9.0.0 "
63
65
},
64
66
"haxeDependencies" : {
65
67
"haxe" : " 3.4.7"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
-js ../lib/_gen/_.js
2
2
# --gen-hx-classes
3
- ImportAll
3
+ --macro include ( ' starling ' , true )
4
4
# -lib starling
5
5
-cp ../src
6
6
# -lib hxgenjs
Original file line number Diff line number Diff line change 1
1
const webpack = require ( "webpack" ) ;
2
- const merge = require ( "webpack-merge" ) ;
2
+ const { merge } = require ( "webpack-merge" ) ;
3
3
const common = require ( "./webpack.common.js" ) ;
4
4
const package = require ( "./package.json" ) ;
5
5
@@ -12,6 +12,7 @@ var banner = "/*!\n"
12
12
+ " */" ;
13
13
14
14
module . exports = merge ( common , {
15
+ mode : "development" ,
15
16
output : {
16
17
filename : "starling.js"
17
18
} ,
Original file line number Diff line number Diff line change 1
1
const webpack = require ( "webpack" ) ;
2
- const merge = require ( "webpack-merge" ) ;
3
- const UglifyJSPlugin = require ( "uglifyjs-webpack-plugin" ) ;
2
+ const { merge } = require ( "webpack-merge" ) ;
3
+ const BrotliPlugin = require ( 'brotli-webpack-plugin' ) ;
4
+ const CompressionPlugin = require ( "compression-webpack-plugin" ) ;
4
5
const common = require ( "./webpack.common.js" ) ;
5
6
const package = require ( "./package.json" ) ;
6
7
7
8
module . exports = merge ( common , {
9
+ mode : "production" ,
8
10
output : {
9
11
filename : "starling.min.js"
10
12
} ,
11
13
plugins : [
12
- new UglifyJSPlugin ( {
13
- sourceMap : true ,
14
- uglifyOptions : {
15
- // warnings: true
16
- }
17
- } ) ,
18
14
new webpack . BannerPlugin ( {
19
15
banner : "/*! Starling Framework v" + package . version + " | Simplified BSD (c) Gamua | gamua.com/starling */" ,
20
16
raw : true ,
21
17
entryOnly : true
22
18
} ) ,
23
- new webpack . DefinePlugin ( {
24
- "process.env.NODE_ENV" : JSON . stringify ( "production" )
19
+ new CompressionPlugin ( {
20
+ include : / [ A - Z a - z 0 - 9 ] * \. m i n \. j s $ /
21
+ } ) ,
22
+ new BrotliPlugin ( {
23
+ asset : '[path].br[query]' ,
24
+ test : / [ A - Z a - z 0 - 9 ] * \. m i n \. j s $ /
25
25
} )
26
26
]
27
27
} ) ;
You can’t perform that action at this time.
0 commit comments