刚学习webpack,请问注释行的代码是什么意思,查了官方文档没看明白。
官方实例:
Multiple Instances There is also an extract function on the instance.
You should use this if you have more than one instance of ExtractTextPlugin.
这是官方对extract方法的参数说明:
ExtractTextPlugin.extract(options: loader | object)
Creates an extracting loader from an existing loader. Supports loaders of type { loader: [name]-loader -> {String}, options: {} -> {Object} }.
options.use
Loader(s) that should be used for converting the resource to a CSS exporting module (required)
options.fallback
loader(e.g 'style-loader') that should be used when the CSS is not extracted (i.e. in an additional chunk when allChunks: false)
options.publicPath
Override the publicPath setting for this loader
隔江千里
相关分类