jwknz-webpack-app
v1.0.3
Published
Simple and easy webpack setup for static sites that takes care of HTML, CSS, JS, JSON and ENV files
Downloads
2
Maintainers
Readme
JWKNZ-WEBPACK-APP
Simple webpack setup to create static sites
Prerequisites
The apps you need to have installed are:
| apps | comment | | ---------- | ----------------------------------------------------------------------------------------------------------------------- | | node & npm | So you can download this package :-) | | vscode | Optional, but the wizards asks if you want to open the editor at the end. If you want me to add other IDE's create a PR | | git | The wizard creates a git repo in the project directory and asks for a remote url. You will need to create repo first |
How to use it
JWKNZ-WEBPACK-APP Help
| command | description | | ------------------------------------------------------- | ----------------------------------------------------------------------- | | --help | see help file (this screen) | | --version, -v | see project version | | jwknz-webpack-app create | create a new project in current folder | | jwknz-webpack-app build start | start webpack-dev-server on port 9000 (by default) | | jwknz-webpack-app build build | npm install & build dist folder | | jwknz-webpack-app build watch | npm install & build dist folder and watch for changes | | jwknz-webpack-app push | add, commit and push to remote git repository | | jwknz-webpack-app merge <current_branch> <merge_branch> | add, merging 2 branches and pushing the result to remote git repository |
NOTE 1: All configs are set in the webpack.config.js file. Note 2: Read the readme file for extra info :-)