@peanutfe/cli-service
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @peanutfe/cli-service

Weekly Downloads

0

Version

0.0.16

License

MIT

Unpacked Size

269 kB

Total Files

19

Last publish

Collaborators

  • xhonker
  • peanutfea