new-webpack-app
🚀 Easily create webpack application in one command.
Installation
Install package new-webpack-app
globally
npm install -g new-webpack-app
Usage
new-webpack-app [options] <project> Options: -j, --jsx <pragma> Use JSX in project with pragma specified. Default is h() -b, --bundle-analyzer Include webpack bundle analyzer in project -h, --help output usage information
You can specify custom JSX pragma for some frameworks. Example:
new-webpack-app -j jsx.parse testapp
You can add webpack bundle analyzer to your app. In this case bundle analyzer will start on event dev server launch.
Example
new-webpack-app testapp
This command will create new folder called testapp
with initial structure of project and install all dependencies.
testapp├── .babelrc├── package.json├── package-lock.json├── tsconfig.json├── webpack.config.dev.js├── webpack.config.prod.js├── node_modules├── build│ └── index.html└── src └── index.js