easy-to-use cli tool for web development
Table of Contents(内容)
run the following command to create a new project
$ npx vanilla-webpage-cli create <project-name>
please set a name which has not been used in your current directory.
$ npm run serve
$ npm run build
you may import net sevice from the
|———— node_modules |———— src | |———— index.html | |———— main.js (entry point) | |———— request.js |———— package.json |———— package-lock.json |———— webpack.config.js |———— tsconfig.json (when using typescript)
With previously installed templates, it's convinient to start development and build for production.
- Optional TypeScript (highly recommended)
- Webpack and useful loaders/plugins (no worry about choosing thoes confusing loaders/plugins ever since)
- Axios (easy to send request)
The Webpack will use
main.js as the entry point, also you can change it inside the config file, and with the help of Webpack plugins there's no need to import it in