magix-loader

5.0.0 • Public • Published

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
                }
            }]
        }]
    }
};

Package Sidebar

Install

npm i magix-loader

Weekly Downloads

0

Version

5.0.0

License

MIT

Unpacked Size

6.61 kB

Total Files

4

Last publish

Collaborators

  • gongeek
  • purplebamboo
  • xinglie