Skip to content

Commit

Permalink
add comment banner to dist file
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed Apr 28, 2016
1 parent d253073 commit ab8a605
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/vconsole.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "vconsole",
"version": "1.0.4",
"description": "A virtual console panel for mobile page",
"homepage": "https://github.com/WechatFE/vConsole",
"main": "dist/vconsole.min.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
6 changes: 6 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var pkg = require('./package.json');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');

Expand Down Expand Up @@ -34,6 +35,11 @@ module.exports = {
warnings: false
}
})
,new webpack.BannerPlugin([
pkg.name + ' v' + pkg.version + ' (' + pkg.homepage + ')',
'Copyright ' + new Date().getFullYear() + ', ' + pkg.author,
pkg.license +' license'
].join('\n'))
// ,new ExtractTextPlugin('[name].min.css') // 将css独立打包
]

Expand Down

0 comments on commit ab8a605

Please sign in to comment.