BannerPlugin插件(注释插件)
BannerPlugin插件是webpack自带的插件,所以要使用此插件,先在webpack.config.js中引用webpack:
const webpack = require("webpack")
因为是插件,我们要在plugins中配置,如下:
plugins: [
new webpack.BannerPlugin('lzijian编写的组件代码'),
]
BannerPlugin插件(注释插件)
BannerPlugin插件是webpack自带的插件,所以要使用此插件,先在webpack.config.js中引用webpack:
const webpack = require("webpack")
因为是插件,我们要在plugins中配置,如下:
plugins: [
new webpack.BannerPlugin('lzijian编写的组件代码'),
]