1 Star 0 Fork 38

Mr_Dong/ng-form-iview

forked from jjxliu306/ng-form-iview 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
// 修改 src 目录 为 examples 目录
pages: {
index: {
entry: 'example/main.js',
template: 'public/index.html',
filename: 'index.html',
chunks: ['chunk-vendors', 'chunk-common', 'index'],
cdn: {
css: [
'https://cdn.bootcdn.net/ajax/libs/view-design/4.4.0/styles/iview.min.css'
],
js: [
"https://unpkg.com/vue@2.6.11/dist/vue.min.js",
"https://cunpkg.com/vue-router@3.0.3/dist/vue-router.min.js",
"https://unpkg.com/vuex@3.1.3/dist/vuex.min.js",
"https://cdn.bootcdn.net/ajax/libs/view-design/4.4.0/iview.min.js",
"https://cdn.bootcss.com/moment.js/2.20.1/moment.min.js"
//"https://unpkg.com/moment@2.24.0/moment.min.js"
]
},
}
},
configureWebpack: {
// 打包忽略文件
externals: {
"view-design": "ViewDesign",
vue: "Vue",
"vue-router": "VueRouter",
vuex: "Vuex",
moment: "moment"
}
},
productionSourceMap: false,
// 强制内联CSS
css: { extract: true },
// 扩展 webpack 配置,使 packages 加入编译
chainWebpack: config => {
//config.plugin('webpack-bundle-analyzer')
// .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
config.module
.rule('js')
.include
.add('/packages')
.end()
.use('babel')
.loader('babel-loader')
.tap(options => {
// 修改它的选项...
return options
})
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/dong9221/ng-form-iview.git
git@gitee.com:dong9221/ng-form-iview.git
dong9221
ng-form-iview
ng-form-iview
master

搜索帮助