0 Star 0 Fork 10

DD/vue-grid-layout

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 743 Bytes
一键复制 编辑 原始数据 按行查看 历史
Gustavo Santos 提交于 2020-09-28 16:27 . added banner plugin
// https://medium.com/js-dojo/how-to-reduce-your-vue-js-bundle-size-with-webpack-3145bf5019b7
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const webpack = require('webpack');
const PACKAGE = require('./package.json');
const banner = PACKAGE.name + ' - ' + PACKAGE.version + ' | ' +
'(c) 2015, ' + new Date().getFullYear() + ' ' + PACKAGE.author + ' | ' +
PACKAGE.homepage;
module.exports = {
configureWebpack: {
output: {
library: "VueGridLayout",
libraryExport: 'default'
},
plugins: [
// new BundleAnalyzerPlugin(),
new webpack.BannerPlugin(banner)
],
},
css: {
extract: false
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/DD_YC/vue-grid-layout.git
git@gitee.com:DD_YC/vue-grid-layout.git
DD_YC
vue-grid-layout
vue-grid-layout
master

搜索帮助