flex-loader
v0.1.7
Published
flex loader for webpack
Downloads
4
Readme
flex loader for webpack
Usage
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 versionswfVer
SWF versiontarget
target player version