Skip to content

Commit

Permalink
added banner plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gmsa committed Sep 28, 2020
1 parent 5bf35d3 commit 0a67b61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"url": "https://github.com/jbaysolutions/vue-grid-layout.git"
},
"author": "Gustavo Santos (JBay Solutions) <gustavo.santos@jbaysolutions.com> (http://www.jbaysolutions.com)",
"homepage": "https://github.com/jbaysolutions/vue-grid-layout",
"main": "dist/vue-grid-layout.common.js",
"unpkg": "dist/vue-grid-layout.umd.min.js",
"scripts": {
Expand Down
13 changes: 11 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
// 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'
},
// https://medium.com/js-dojo/how-to-reduce-your-vue-js-bundle-size-with-webpack-3145bf5019b7
// plugins: [new BundleAnalyzerPlugin()],
plugins: [
// new BundleAnalyzerPlugin(),
new webpack.BannerPlugin(banner)
],
},
css: {
extract: false
Expand Down

0 comments on commit 0a67b61

Please sign in to comment.