File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 17
17
node-version : " 16.x"
18
18
19
19
- name : Build
20
+ env :
21
+ LCJS_LICENSE : ${{ secrets.LCJS_DEPLOY_LICENSE }}
20
22
run : |
21
23
npm install
22
24
npm run build
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
2
2
const { CleanWebpackPlugin } = require ( "clean-webpack-plugin" ) ;
3
3
const CopyWebpackPlugin = require ( "copy-webpack-plugin" ) ;
4
4
const path = require ( "path" ) ;
5
+ const webpack = require ( 'webpack' ) ;
5
6
6
7
const targetFolderName = "dist" ;
7
8
const outputPath = path . resolve ( __dirname , targetFolderName ) ;
@@ -62,5 +63,8 @@ module.exports = {
62
63
} ,
63
64
] ,
64
65
} ) ,
66
+ new webpack . DefinePlugin ( {
67
+ LCJS_LICENSE : "'" + process . env . LCJS_LICENSE + "'" ,
68
+ } ) ,
65
69
] ,
66
70
} ;
You can’t perform that action at this time.
0 commit comments