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 1717 node-version : " 16.x"
1818
1919 - name : Build
20+ env :
21+ LCJS_LICENSE : ${{ secrets.LCJS_DEPLOY_LICENSE }}
2022 run : |
2123 npm install
2224 npm run build
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
22const { CleanWebpackPlugin } = require ( "clean-webpack-plugin" ) ;
33const CopyWebpackPlugin = require ( "copy-webpack-plugin" ) ;
44const path = require ( "path" ) ;
5+ const webpack = require ( 'webpack' ) ;
56
67const targetFolderName = "dist" ;
78const outputPath = path . resolve ( __dirname , targetFolderName ) ;
@@ -62,5 +63,8 @@ module.exports = {
6263 } ,
6364 ] ,
6465 } ) ,
66+ new webpack . DefinePlugin ( {
67+ LCJS_LICENSE : "'" + process . env . LCJS_LICENSE + "'" ,
68+ } ) ,
6569 ] ,
6670} ;
You can’t perform that action at this time.
0 commit comments