@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'),
}