flex-loader
flex loader for webpack
Last updated a year ago by cheslip .
ISC · Original npm · Tarball
$ cnpm install flex-loader 
SYNC missed versions from official npm registry.

flex loader for webpack

Usage

Documentation: Using loaders

var swfPath = require("path/to/AS3/source.as");

Then in webpack config:

module: {
        loaders: [
            {
                test: /\.as$/,
                loader: 'flex',
                query: {
                    lib: 'src/flash/libs',
                    src: 'src/flash/src',
                    build: 'src/flash/build/swf',
                    name: '/swf/[name].swf'
                }
            }
        ]
    }

You could also put everything under query as query parameters to the require path:

var swfPath = require("flex?name=[name].swf&lib=lib/path&src=src/path&build=build/path!./path/to/AS3/source.as");

Other query options:

  • ver flex sdk version
  • swfVer SWF version
  • target target player version
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |