multi-loader

multi-loader

该加载程序需要多次模块,每次加载不同的加载程序。就像在多入口点一样,导出最后一项的出口。

安装

npm i multi-loader --save

用法

var multi = require("multi-loader" { module: { loaders: [ { test: /\.css$/, // Add CSS to the DOM // and // Return the raw content loader: multi( "style-loader!css-loader!autoprefixer-loader", "raw-loader" ) } ] } }