cuze

1.6.0 • Public • Published

cuze

Quickly build a webpack environment

Installation

Node.js: >=8.x

$ yarn add cuze
$ yarn add cueze -g
or
$ npm i cuze
$ npm i cuze -g

Usage

$ mkdir cuze-example
$ cd cuze-example
$ yarn init -y
$ yarn add cuze -D

In order to be able to use cuze completely, you need to set up the src directory and index.html.So the final directory is as follows:

.

├── node_modules

├── index.html

├── package.json

├── src

│   └── main.js

├── cuze.config.js

└── yarn.lock

If you want to customize the babel configuration, you can add cuze.config.js similar to webpack.config.js:

# cuze.config.js
module.exports = {
  entry: {},
  output: {},
  ...
}

In the end, how do we start? There are two ways:

  • If you don't have a global installation, ./node_modules/.bin/cuze, otherwise, cuze
  • Add script to package.json, yarn dev
# package.json
"scripts": {
  "dev": "cuze"
}

Features

  • Support all ES6 syntax
  • Install React by default

Readme

Keywords

none

Package Sidebar

Install

npm i cuze

Weekly Downloads

6

Version

1.6.0

License

MIT

Unpacked Size

276 kB

Total Files

5

Last publish

Collaborators

  • cuveecui