Skip to content

Latest commit

 

History

History
100 lines (68 loc) · 1.23 KB

README.md

File metadata and controls

100 lines (68 loc) · 1.23 KB

@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
}

Default

'web'

Default

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

Default

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

Default

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