Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否有考慮改用基於 Webpack 的 vue-cli 重構程式 #4

Closed
pan93412 opened this issue Feb 21, 2021 · 6 comments
Closed

是否有考慮改用基於 Webpack 的 vue-cli 重構程式 #4

pan93412 opened this issue Feb 21, 2021 · 6 comments

Comments

@pan93412
Copy link
Contributor

pan93412 commented Feb 21, 2021

如果有興趣的話,我明天可以試著重構看看。此外也想套上 TypeScript 之類的東西。

@rogeraabbccdd
Copy link
Owner

我當初做的時候是想說小東西而已,不需要出動 webpack
用 vue-cli 應該也可以,用 pug 之類的預處理器寫蠻省力的,也能打包成 electron 之類有的沒的

@pan93412
Copy link
Contributor Author

pan93412 commented Feb 21, 2021

我當初做的時候是想說小東西而已,不需要出動 webpack
用 vue-cli 應該也可以,用 pug 之類的預處理器寫蠻省力的,也能打包成 electron 之類有的沒的

Pug 我不太推薦耶。之前試過 Webpack w/ Pug,但發現到 Pug 的某些功能沒辦法在 Webpack 下正常運作,而且 Pug 很多功能跟 Vue 的 attribute 語法重疊。

@rogeraabbccdd
Copy link
Owner

我用 Vue-Cli 配 pug 用一年多了,還沒遇到什麼大問題...
語法重疊的部分,像是 pug 的 each val inv-for 的迴圈我會以 Vue 的語法優先

@pan93412
Copy link
Contributor Author

我用 Vue-Cli 配 pug 用一年多了,還沒遇到什麼大問題...
語法重疊的部分,像是 pug 的 each val inv-for 的迴圈我會以 Vue 的語法優先

原來你試過了喔 OAO 而且聽起來 Vue w/ Pug 的組合沒什麼問題,那就試試看吧。

Pug on Webpack 我以前碰到的主要是 variable scope 問題啦。

@rogeraabbccdd
Copy link
Owner

rogeraabbccdd commented Feb 21, 2021

我最近做的 techmania 就是用 Quasar Framework + Pug + Stylus

@pan93412
Copy link
Contributor Author

pan93412 commented Feb 21, 2021

我最近做的 techmania 就是用 Quasar Framework + Pug + Stylus

好酷,是音遊耶!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants