Neurotic Pumpkin Murderer

    @yueqing/webpack

    1.6.0 • Public • Published

    @yueqing/webpack

    @yueqing/webpack is a webpack cli, out-of-box.

    Usage

    Install

    yarn add @yueqing/webpack -D
    
    # or
    
    npm install @yueqing/webpack -D

    Development

    yq-webpack start

    Build

    yq-webpack build

    CLI command

    yq-webpack

    • --version, -V get yq-webpack version

    yq-webpack start

    --

    yq-webpack build

    --

    Custom Config

    Add yueqing.config.js at your project root.

    /**
     * @type {import('@yueqing/webpack/lib/interface').UserConfig}
     */
    module.exports = {
      //.. config
    }

    target

    Default

    'web'

    entry

    Default

    {
      app: [
        path.join(__dirname, './template.ejs')
      ]
    }

    alias

    Default

    {
      '@': path.join(process.env.PWD, './src'),
    }

    htmlWebpack

    Default

    {
      title: 'YueQing',
      inject: 'body',
      meta: {
        charset: 'UTF-8',
        viewport: 'width=device-width, initial-scale=1.0',
      },
      template: path.join(__dirname, './template.ejs'),
    }

    Keywords

    none

    Install

    npm i @yueqing/webpack

    DownloadsWeekly Downloads

    3

    Version

    1.6.0

    License

    MIT

    Unpacked Size

    25.2 kB

    Total Files

    23

    Last publish

    Collaborators

    • wsjsimon