mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Add command to build without licenses
This commit is contained in:
parent
896dc437ff
commit
685ccb3822
2 changed files with 3 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
"scripts": {
|
||||
"start": "npm run build-wasm && concurrently -k \"parcel serve index.html --port 8080\" \"npm run watch:wasm\" || (npm run print-building-help && exit 1)",
|
||||
"build": "npm run build-wasm-prod && npm run build-licenses && parcel build index.html || (npm run print-building-help && exit 1)",
|
||||
"build:dev": "npm run build-wasm-prod && parcel build index.html && cd dist && python ../server.py || (npm run print-building-help && exit 1)",
|
||||
"build-licenses": "webpack build",
|
||||
"tauri:dev": "echo 'Make sure you build the wasm binary for tauri using `npm run tauri:build-wasm`' && parcel serve index.html --port 8080",
|
||||
"build-wasm": "wasm-pack build ./wasm --dev --target=web",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import wasm_bindgen from '../../wasm/pkg/graphite_wasm.js'
|
||||
import "reflect-metadata";
|
||||
|
||||
const { child_entry_point } = wasm_bindgen;
|
||||
|
||||
|
@ -14,7 +15,7 @@ self.onmessage = async event => {
|
|||
// or a module object); the second is the memory block to use, and if you
|
||||
// don't provide one (like we didn't in "index.js") then a new one will be
|
||||
// allocated for you.
|
||||
log('worker.js: onmessage', event.data);
|
||||
console.log('worker.js: onmessage', event.data);
|
||||
debugger;
|
||||
const url = new URL('../../wasm/pkg/graphite_wasm_bg.wasm', import.meta.url);
|
||||
let init = await wasm_bindgen(url, event.data[1]).catch(err => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue