File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 17
17
"url" : " https://github.com/jbaysolutions/vue-grid-layout.git"
18
18
},
19
19
"author" :
" Gustavo Santos (JBay Solutions) <[email protected] > (http://www.jbaysolutions.com)" ,
20
+ "homepage" : " https://github.com/jbaysolutions/vue-grid-layout" ,
20
21
"main" : " dist/vue-grid-layout.common.js" ,
21
22
"unpkg" : " dist/vue-grid-layout.umd.min.js" ,
22
23
"scripts" : {
Original file line number Diff line number Diff line change
1
+ // https://medium.com/js-dojo/how-to-reduce-your-vue-js-bundle-size-with-webpack-3145bf5019b7
1
2
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
3
+ const webpack = require ( 'webpack' ) ;
4
+ const PACKAGE = require ( './package.json' ) ;
5
+
6
+ const banner = PACKAGE . name + ' - ' + PACKAGE . version + ' | ' +
7
+ '(c) 2015, ' + new Date ( ) . getFullYear ( ) + ' ' + PACKAGE . author + ' | ' +
8
+ PACKAGE . homepage ;
2
9
3
10
module . exports = {
4
11
configureWebpack : {
5
12
output : {
6
13
library : "VueGridLayout" ,
7
14
libraryExport : 'default'
8
15
} ,
9
- // https://medium.com/js-dojo/how-to-reduce-your-vue-js-bundle-size-with-webpack-3145bf5019b7
10
- // plugins: [new BundleAnalyzerPlugin()],
16
+ plugins : [
17
+ // new BundleAnalyzerPlugin(),
18
+ new webpack . BannerPlugin ( banner )
19
+ ] ,
11
20
} ,
12
21
css : {
13
22
extract : false
You can’t perform that action at this time.
0 commit comments