1.9.83 • Published 6 years ago
wfo-cli v1.9.83
Webpack Front Office (wfo) cli generator
wfo-cli is a lightweight command line for generating webpack project for HTML + CSS and Javascript.
Installation
npm install -g wfo-cli
# Or
yarn global add wfo-cli
Usage
Generate
front new [name] [options]
Argument
- name: name of the directory which you want to generate project. Default: Current directory
Options
- --git-init optional: initialize project with git. Use this option if you don't have
.git
yet. - --using <template> (alias -u) optional: Generate the project and using css framework. Available template: bootstrap
Serve
npm start # the application is served on http://localhost:8080
# Or
front serve [options] <value>
Options
- --port (alias -p) optional: The port where the application is served. Default: 8080
- --host (alias -h) optional: The host where the application is served. Default: localhost
Build
npm run prod
# Or
npm run prod:abs # for absolute public path
# Or
front build [option]
Option
- --absolute (alias -a) optional: Set the publicPath into webpack config to absolute path.
- --wp-theme <theme_name> (alias -t): Set publicPath to wordpress theme path
(wp-content/themes/<theme_name>)
Features
- Lazy loading (Short Tuto)
- SCSS
- ES2015+
- Hot Module Replacement
- Live reload
1.9.83
6 years ago
1.9.82
6 years ago
1.9.81
6 years ago
1.9.8
6 years ago
1.9.7
6 years ago
1.9.6
6 years ago
1.9.5
6 years ago
1.9.4
6 years ago
1.9.3
6 years ago
1.9.2
6 years ago
1.9.1
6 years ago
1.9.0
6 years ago
1.8.9
6 years ago
1.8.8
6 years ago
1.8.7
6 years ago
1.8.6
6 years ago
1.8.5
6 years ago
1.8.4
6 years ago
1.8.3
6 years ago
1.8.2
6 years ago
1.8.1
6 years ago
1.8.0
6 years ago
1.7.0
6 years ago
1.6.0
6 years ago
1.5.7
6 years ago
1.5.6
6 years ago
1.5.5
6 years ago
1.5.4
6 years ago
1.5.3
6 years ago
1.5.2
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.4.6
6 years ago
1.4.5
6 years ago
1.4.4
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago