xp-web

1.0.1 • Public • Published

npm install xp-web --dev

yarn add xp-web --dev

配置文件pages.config.js,结构如下:

module.exports = { build: { src: 'src', dist: 'release', temp: '.tmp', public: 'public', paths: { styles: 'assets/styles/.scss', scripts: 'assets/scripts/.js', pages: '*.html', images: 'assets/images/', fonts: 'assets/fonts/' } }, data: { menus: [ { name: 'Home', icon: 'aperture', link: 'index.html' }, { name: 'Features', link: 'features.html' }, { name: 'About', link: 'about.html' }, { name: 'Contact', link: '#', children: [ { name: 'Twitter', link: 'https://twitter.com/w_zce' }, { name: 'About', link: 'https://weibo.com/zceme' }, { name: 'divider' }, { name: 'About', link: 'https://github.com/zce' } ] } ], pkg: require('./package.json'), date: new Date() } }

xp-web clean 清除所有打包文件

xp-web build 构建项目

xp-web develop 启动开发服务器

Readme

Keywords

none

Package Sidebar

Install

npm i xp-web

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

6.55 kB

Total Files

4

Last publish

Collaborators

  • whoopsina