首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

multi-loader

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

安装

代码语言:javascript
复制
npm i multi-loader --save

用法

代码语言:javascript
复制
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"
                )
            }
        ]
    }
}

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com