@ctsj/build
一个基于webpack的打包工具
Last updated a month ago by playerljc .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ctsj/build 
SYNC missed versions from official npm registry.

CTSJ-BUILD

A webpack packaging tool

** .startapp **

Developed form of operation

Options:

  • -c, --config <path> ctbuild.config.js configuration file location, if not specified, read ctbuild.config.js in the directory where the command is located
  • -d, --define <path> custom params split ","

** .buildapp **

Production environment packaging

Options:

  • -c, --config <path> ctbuild.config.js configuration file location, if not specified, read ctbuild.config.js in the directory where the command is located
  • -d, --define <path> custom params split ","

** .buildumd **

Production environment umd package

Options:

  • -c, --config <path> ctbuild.config.js configuration file location, if not specified, read ctbuild.config.js in the directory where the command is located
  • -p, --packagename <name> package name,The prefix name of the js file after packaging, If not specified, it is packagename
  • -d, --define <path> custom params split ","

** .buildpackage **

Packaged into npm package

Options:

  • -p, --srcpath <path> Packaged directory, if not specified, is the src folder under the running directory

** .ctbuild.config.js **

Webpack configuration file, use default configuration if no configuration is possible

code


module.exports = {
  getConfig({ webpack,curModule,plugins }) {

  },
};

  • webpack Webpack native object
  • curModule Default configuration object
  • plugins Default webpack plugin set These plugins include:
    • HtmlWebpackPlugin
    • MiniCssExtractPlugin
    • CopyWebpackPlugin
    • HtmlWebpackIncludeAssetsPlugin
    • LessPluginCleanCSS
    • LessPluginAutoPrefix

.The user can perform a merge operation on the curModule, all operations are webpack configuration items, and finally return,Note that if you use webpack objects and plugins, you need to use the values provided by the webpack and plugins provided in the parameters.

** .defaultSetting **

  • js/jsx parsing
  • css/less parsing
  • css/less packaged into a file
  • Image Resolution
  • Font parsing
  • HappyPack Multicore Compilation
  • cache-loader
  • extensions autocomplete
  • The splitChunks of node_modules is a vendor

Current Tags

  • 1.0.24                                ...           latest (a month ago)

27 Versions

  • 1.0.24                                ...           a month ago
  • 2.0.2                                ...           a month ago
  • 2.0.1                                ...           2 months ago
  • 1.0.23                                ...           3 months ago
  • 1.0.22                                ...           3 months ago
  • 1.0.21                                ...           3 months ago
  • 1.0.20                                ...           4 months ago
  • 1.0.19                                ...           5 months ago
  • 1.0.18                                ...           6 months ago
  • 1.0.17                                ...           7 months ago
  • 1.0.16                                ...           7 months ago
  • 1.0.15                                ...           7 months ago
  • 1.0.14                                ...           7 months ago
  • 1.0.13                                ...           7 months ago
  • 1.0.12                                ...           8 months ago
  • 1.0.11                                ...           9 months ago
  • 1.0.10                                ...           9 months ago
  • 1.0.9                                ...           9 months ago
  • 1.0.8                                ...           9 months ago
  • 1.0.7                                ...           9 months ago
  • 1.0.6                                ...           9 months ago
  • 1.0.5                                ...           10 months ago
  • 1.0.4                                ...           10 months ago
  • 1.0.3                                ...           10 months ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 39
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |