Skip to content

Commit

Permalink
v1.2.3 Add Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
cycjimmy committed Aug 21, 2018
1 parent c058907 commit c683370
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 7 deletions.
9 changes: 8 additions & 1 deletion build/JSMpeg.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*!
* jsmpeg-player v1.2.3
* Homepage: https://github.com/cycdpo/jsmpeg-player#readme
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -113,7 +118,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _lib_webgl__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(20);
/* harmony import */ var _lib_canvas2d__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(21);
/* harmony import */ var _lib_webaudio__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(22);
/* According to jsmpeg project(https://github.com/phoboslab/jsmpeg) modified */
/**
* According to jsmpeg project(https://github.com/phoboslab/jsmpeg)
*/

// ES6 modular

Expand Down
5 changes: 5 additions & 0 deletions build/JSMpeg.min.js

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion dist/JSMpeg.js

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

2 changes: 1 addition & 1 deletion dist/JSMpeg.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsmpeg-player",
"version": "1.2.2",
"version": "1.2.3",
"description": "MPEG1 Video Player Based On JSMpeg",
"main": "build/JSMpeg.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* According to jsmpeg project(https://github.com/phoboslab/jsmpeg) modified */
/**
* According to jsmpeg project(https://github.com/phoboslab/jsmpeg)
*/

// ES6 modular
import Player from './lib/player';
Expand Down
11 changes: 9 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var
path = require('path')
, webpack = require('webpack')
, packageJson = require('./package.json')

// webpack plugin
, BrowserSyncPlugin = require('browser-sync-webpack-plugin')
Expand Down Expand Up @@ -115,7 +116,13 @@ var config = {
]
},

plugins: []
plugins: [
new webpack.BannerPlugin({
banner: packageJson.name + ' v' + packageJson.version +
'\nHomepage: ' + packageJson.homepage +
'\nReleased under the ' + packageJson.license + ' License.'
})
]
};

// dev mode
Expand Down Expand Up @@ -170,7 +177,7 @@ if (IS_PRODUCTION) {
safari10: true,
ecma: 5,
output: {
comments: false,
comments: /^!/,
beautify: false
},
compress: {
Expand Down

0 comments on commit c683370

Please sign in to comment.