vue-arc-cli
v0.0.3
Published
vue-architecture-demo的脚手架
Downloads
1
Readme
vue-architecture-demo-cli
vue-architecture-demo的脚手架 引入了vue-cli@2
use
// 全局安装
`yarn global add vue-arc-cli`
// 调用vue-cli 后再 覆盖src文件
`vue-arc webpack xxx`
// 单纯的生成`vue-architecture-demo`的src文件
`vue-src`
需手动添加
// package.json
`yarn add axios cross-env driver.js eslint-formatter-friendly fastclick html5-reset husky lint-staged mockjs vue-awesome vue-i18n vuex`
// 脚手架
// 插入svg-sprite-loader webpack配置
rules:[
{
test: /\.svg$/,
loader: 'svg-sprite-loader',
include: [resolve('src/icons')], //
options: {
symbolId: 'icon-[name]',
}
},
// 排除url-loader
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
exclude: [resolve('src/icons')], // folders other than src/icons use url-loader
options: {
limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]')
}
},
]