Need help with magix-loader?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

thx
121 Stars 15 Forks 25 Commits 0 Opened issues

Description

webpack loader

Services available

!
?

Need anything else?

Contributors list

magix-loader Version Number THX Team License download

webpack loader

examples

module.exports = {
    entry: './app/index.js', //默认,可覆盖
    output: {
        path: path.join(__dirname, 'build'),
        filename: '[name].js'
    },
    module: {
        rules: [{
            test:/\.(?:mx|js)$/, // js or mx 后缀
            include:[
                path.resolve(__dirname,'app')//只处理app目录
            ],
            use:[{
                loader:'magix-loader',
                options:{//编译器配置项,magix-loader 使用 magix-combine,这里是magix-combine的配置项 https://github.com/thx/magix-combine/issues/17
                    //compressCss:false
                }
            }]
        }]
    }
};

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.