Skip to content

Commit

Permalink
CH pages license support
Browse files Browse the repository at this point in the history
  • Loading branch information
Snekw committed Feb 13, 2023
1 parent 0036770 commit de28198
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gh-pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
node-version: "16.x"

- name: Build
env:
LCJS_LICENSE: ${{ secrets.LCJS_DEPLOY_LICENSE }}
run: |
npm install
npm run build
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require("path");
const webpack = require('webpack');

const targetFolderName = "dist";
const outputPath = path.resolve(__dirname, targetFolderName);
Expand Down Expand Up @@ -62,5 +63,8 @@ module.exports = {
},
],
}),
new webpack.DefinePlugin({
LCJS_LICENSE: "'" + process.env.LCJS_LICENSE + "'",
}),
],
};

0 comments on commit de28198

Please sign in to comment.