CONFIG
-
default config file in the root
fe.config.js
-
support params
name
type
default
describe
output
String
./dist
output dir publicPath
String
./
public url source
String
./pages
source pages dir pageConfigName
Sting
deploy.json
page deploy config webpackChain
Function
()=>{}
webpack chain afterBuild
Function
()=>{}
after build hook -
example
// fe.config.js
module.exports = {
source: './pages',
output: './dist',
publicPath: 'https://cdn.aliyun.com/test' || './', // support cdn or root deploy
};