cli for react and vue
- empty dir src
- mkdir src
- touch main.tsx?
- declare.d.ts
- empty dir src
- mkdir src && mkdir src/demo
- cd src/demo && touch index.tsx? index.less? index.vue?
- cd src && touch declare.d.ts /// react or vue
- gen wont.config.js
- config document.title from 'html-webpack-plugin', needs wont.config.js has right title config
- gen entry or entries
(MPA needs glob)choice spa or mpa, and Convention over configuration
- react
- vue
- done from dotenv
- externals
- proxy from devServer (provide webpack.js option to merge is ok)
- port take up (portfinder)
- mobile (mainly about rem, can work with pxtorem postcss plugins)
- pc
-
make sure dir is exit or has conflict, and resolve conflict by overwrite, both, some like git diffmake sure dir is exit, is exit, overwrite by emptyDir
-
how to work with copy file to dest, like yeomanfs-extra copySync is ok
- to be continue…