1.1.4 ⢠Published 6 years ago
new-webpack-app v1.1.4
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