WuTheFWasThat / vimflowy

An open source productivity tool drawing inspiration from workflowy and vim

Home Page:https://www.wuthejeff.com/vimflowy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to run as static html without server?

moughxyz opened this issue · comments

commented

Hello, is it possible to serve this as a static html page without a server? It seems like it would be, but I'm running into the following issue:

After running npm run build, I do see the build folder generated with app.js. However, when I load the index.html file directly in the browser, I see the following error:

app.js:81 Uncaught SyntaxError: Invalid regular expression: /([ 
	]+)|([!-\[\]-‧‪-퟿豈-￿]|[�-�][�-�]|\\(?:[a-zA-Z]+|[^�-�]))/: Range out of order in character class
    at new RegExp (<anonymous>)
    at Object.<anonymous> (app.js:81)
    at n (app.js:1)

This issue does not appear when running it through the dev or prod server.

yep, it should be. thanks for reporting! I'm able to reproduce on a recent version of chrome, so that's definitely an issue.. I've been a bit busy, but will look into it hopefully tonight

sorry for the delay. this appears to be a bug in webpack.

If you find/replace

   minimize: true

with

   minimize: false

in webpack_configs.ts, it should work!

commented

Ok thanks, will give that a try!

commented

Can confirm this works now, thanks 👍