Socket
Socket
Sign inDemoInstall

magix-loader

Package Overview
Dependencies
270
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    magix-loader

webpack loader for magix view


Version published
Weekly downloads
2
increased by100%
Maintainers
3
Install size
24.9 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 26 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc