Skip to content

Commit 630a153

Browse files
committed
CH pages license support
1 parent c21a326 commit 630a153

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/gh-pages-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
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

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
22
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
33
const CopyWebpackPlugin = require("copy-webpack-plugin");
44
const path = require("path");
5+
const webpack = require('webpack');
56

67
const targetFolderName = "dist";
78
const 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
};

0 commit comments

Comments
 (0)