mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 07:23:14 +01:00
Turn off nodeIntegration. Without it disabled, Math.js does not work in production build.
This commit is contained in:
parent
4d12404d77
commit
82f916122c
@ -16,7 +16,7 @@
|
||||
|
||||
<div id="app"></div>
|
||||
<script type="module" src="src/main.js"></script>
|
||||
<script src="math.js" type="text/javascript"></script>
|
||||
<script src="./math.js"></script>
|
||||
|
||||
<!--<div id="editor" class="editor"></div>
|
||||
<script type="module" src="src/editor/index.js"></script>-->
|
||||
|
@ -57,7 +57,7 @@ export default defineConfig({
|
||||
]),
|
||||
// Use Node.js API in the Renderer-process
|
||||
renderer({
|
||||
nodeIntegration: true,
|
||||
nodeIntegration: false,
|
||||
}),
|
||||
],
|
||||
server: !!process.env.VSCODE_DEBUG ? (() => {
|
||||
|
Loading…
Reference in New Issue
Block a user