@hanreev/webpacker
Easy way to use webpack
Last updated 19 days ago by hanreev .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hanreev/webpacker 
SYNC missed versions from official npm registry.

Webpacker

Easy way to use webpack

Installation

  • NPM

    npm i -D @hanreev/webpacker
    
  • Yarn

    yarn add -D @hanreev/webpacker
    

Configuration

  • Run webpacker init command to generate empty configuration

    # NPX
    npx webpacker init
    
    # yarn
    yarn webpacker init
    

    Add --out options to generate webpacker.config.js into different path

    See configuration example

  • Available options:

    Option Type Default Description
    outputPath string '' Assets output path, can be absolute or relative path
    publicPath string '' URL to public path
    entries {[destPath: string]: string|string[]} {} List of entry files. Destinaton path for glob and array may use [name], [basename] and [ext] placeholder
    splitChunks Object {} See Webpack SplitChunksPlugin options
    runtimeChunck boolean|'single'|'multiple'|{ name: string } false See Webpack runtime chunk option
    providers Object {} See Webpack ProvidePlugin options
    copies {[destPath: string]: string} {} List of files, folders or glob to copy
    sourceMap boolean|'auto' 'auto' Enable/Disable source map
    hashOutput string|boolean true Hash output path. true enables hash output to default location: asset-hash.json
    watchExclude string[] [] List of files, folders and glob string to exclude on watch
    devServer Object undefined See Webpack DevServer options
    ckEditor {language: string, themePath: string} {language: 'en', themePath: '@ckeditor/ckeditor5-theme-lark'} See CKEditor 5 webpack configuration

Usage

  • NPX

    npx webpacker <command> [options]
    
    # To see available commands and options, run:
    npx webpacker --help
    
  • Yarn

    yarn webpacker <command> [options]
    
    # To see available commands and options, run:
    yarn webpacker --help
    

Current Tags

  • 1.3.1                                ...           latest (19 days ago)

15 Versions

  • 1.3.1                                ...           19 days ago
  • 1.3.0                                ...           19 days ago
  • 1.2.1                                ...           4 months ago
  • 1.2.0                                ...           4 months ago
  • 1.1.0                                ...           5 months ago
  • 1.0.9                                ...           7 months ago
  • 1.0.8                                ...           8 months ago
  • 1.0.7                                ...           8 months ago
  • 1.0.6                                ...           9 months ago
  • 1.0.5                                ...           9 months ago
  • 1.0.4                                ...           9 months ago
  • 1.0.3                                ...           9 months ago
  • 1.0.2                                ...           9 months ago
  • 1.0.1                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 16
Last Day 0
Last Week 16
Last Month 35
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |