Skip to content

Commit

Permalink
chore: add license on worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hexf00 committed Nov 13, 2024
1 parent 164bbf7 commit 30e4474
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function createSiteStatic() {
console.warn('\x1B[33m%s\x1B[0m', `Warning: Unable to read ${licenseFilePath}. Work on Free Mode, if you want to use the Business Mode, you can get a 30-day free trial license from https://univer.ai/pro/license`)
}

const filesToReplace = ['main.js']
const filesToReplace = ['main.js', 'worker.js']
filesToReplace.forEach((file) => {
const filePath = join(targetDir, file)
if (fs.existsSync(filePath)) {
Expand Down
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ export default ({ mode }) => {
'process.env.UNIVER_CLIENT_LICENSE': `"${env.UNIVER_CLIENT_LICENSE}"` || '"%%UNIVER_CLIENT_LICENSE_PLACEHOLDER%%"',
},
base: './',
worker: {
rollupOptions: {
output: {
entryFileNames: 'worker.js',
},
},
},
build: {
rollupOptions: {
output: {
Expand Down

0 comments on commit 30e4474

Please sign in to comment.