@yueqing/webpack is a webpack cli, out-of-box.
Install
yarn add @yueqing/webpack -D
# or
npm install @yueqing/webpack -D
Development
yq-webpack start
Build
yq-webpack build
- --version, -V get yq-webpack version
--
--
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'),
}