57.Note Plug-in (Bannerplugin) use, modify the Webpack.config.js configuration file, modify the content as follows
var webpack = require (' Webpack '); module.exports = {entry: __dirname + "/app/greeter.js", Output: {path: __dirname + "/publ IC ", FileName:" Bundle.js "},devserver:{contentbase:"./public ", historyapifallback:true,inline:true},module:{ Loaders:[{test:/\.json$/,loader: "Json-loader"},{test:/\.js$/,exclude:/node_modules/,loader: ' Babel-loader '},{ Test:/\.css$/,loader: ' Style-loader!css-loader?modules '}]},plugins:[new webpack. Bannerplugin ("Copyright Suyan")]}
58. Package with the Webpack command
Webpack
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/8D/B8/wKioL1ioMImB7PcaAABBPR4ZHNY108.png-wh_500x0-wm_ 3-wmp_4-s_1082602677.png "title=" 59.png "alt=" Wkiol1iomimb7pcaaabbpr4zhny108.png-wh_50 "/>
59. View Bundle.js File
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/8D/BB/wKiom1ioL6jgDoduAABPBUJVEnQ290.png-wh_500x0-wm_ 3-wmp_4-s_3708078400.png "title=" 58.png "alt=" wkiom1iol6jgdoduaabpbujvenq290.png-wh_50 "/>650) this.width=650;" Src= "Https://s4.51cto.com/wyfs02/M00/8D/B8/wKioL1ioMfOhruvJAABPBUJVEnQ428.png-wh_500x0-wm_3-wmp_4-s_ 1462962090.png "title=" 58.png "alt=" Wkiol1iomfohruvjaabpbujvenq428.png-wh_50 "/>
This article is from the "Yan" blog, please be sure to keep this source http://suyanzhu.blog.51cto.com/8050189/1899095
Webpack Getting Started tutorial ten