WuTheFWasThat / vimflowy

An open source productivity tool drawing inspiration from workflowy and vim
https://www.wuthejeff.com/vimflowy
MIT License
1.6k stars 111 forks source link

Possible to run as static html without server? #295

Closed moughxyz closed 5 years ago

moughxyz commented 6 years ago

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.

WuTheFWasThat commented 6 years ago

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

WuTheFWasThat commented 6 years ago

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!

moughxyz commented 6 years ago

Ok thanks, will give that a try!

moughxyz commented 6 years ago

Can confirm this works now, thanks 👍