webpack-production-builder
production builder
Last updated a month ago by sandon .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install webpack-production-builder 
SYNC missed versions from official npm registry.

webpack-production-builder

At first I wanted to make it a 'webpack production builder'. But 
then, I decided to leave the compiling function to developers' 
local implementation so developers can use Webpack, rollup or anything else. 
In the end, this builder is just a minifying and uglification tool based on gulp.

Install

npm install webpack-production-builder -g

CLI Command

build

wpb -i input_path -o output_path

or

wpb --input input_path --output output_path

help

wpb -h

or

wpb --help

compile ignore

Add a json file named .staticignore.json to the root directory of your code to configure compiling.
Content of the file is like bellow:

{
  "compileIgnore": [
    "**/*.min.js",
    "**/*.min.css"
  ],
  "completelyIgnore": [
    "src/**"
  ]
}

compileIgnore : files that match the rules will not be compiled, and will be in the output directory untouched specified by {{output_path}}.
completelyIgnore : files that match it's rules will be removed completely from the output directory specified by {{output_path}}.

Issues

If you use react or ES2015, errors may be reported when compiling code with wpb. In this situation, you should install babel-preset-react or babel-preset-es2015 in the parent or higher directory of the code file

Current Tags

  • 0.0.14                                ...           latest (a month ago)

13 Versions

  • 0.0.14                                ...           a month ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 0
Last Month 32
Dependencies (10)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |