webpack as3 plugin
1.0.0
WebPack 용이 플러그인은 mxmlc 사용하여 일부 ActionScript .as 파일을 컴파일하는 실험입니다.
npm install --save-dev webpack-as3-plugin
또는
yarn add -D webpack-as3-plugin
이 플러그인에는 최소한 노드 v6이 필요합니다. 그러나 그렇지 않으면 WebPack 버전 (1, 2, 3, 4)을 수락해야합니다.
// webpack.config.js
const ActionScriptPlugin = require('webpack-as3-plugin');
module.exports = {
// snip - regular webpack loaders configuration
// update the plugins [] with the plugin
plugins: [
new ActionScriptPlugin({
src: './src/com/wazooinc/Main.as',
srcPath: './src/',
output: path.join('dist/main.swf')
})
]
};
그리고 당신은 끝났습니다! 유용한 콘솔 로깅은 모든 문제를 경고해야합니다.
예제 폴더를 확인하십시오.
이를 물체로 생성자로 전달하십시오.
const swfBuild = new WebpackAs3Plugin(options);
options.src
유형 : String
소스 파일 .as 루트에 대한 상대 경로.
options.srcPath
유형 : String
소스의 루트에 해당하는 상대 폴더 이름.
options.output
유형 : String
생성 된 SWF 의 상대 출력 폴더 및 출력 파일 이름.
@NGS 덕분 에이 요지의 재 포장
Adobe Flex Compiler (mxmlc)
Version 4.6.0 build 23201
Copyright (c) 2004-2011 Adobe Systems, Inc. All rights reserved.
-benchmark
-compiler.accessible
-compiler.actionscript-file-encoding <string>
-compiler.compress
-compiler.context-root <context-path>
-compiler.debug
-compiler.enable-runtime-design-layers
-compiler.extensions.extension [extension] [parameters] [...]
-compiler.external-library-path [path-element] [...]
-compiler.fonts.advanced-anti-aliasing
-compiler.fonts.flash-type
-compiler.fonts.max-glyphs-per-face <string>
-compiler.include-libraries [library] [...]
-compiler.incremental
-compiler.library-path [path-element] [...]
-compiler.locale [locale-element] [...]
-compiler.minimum-supported-version <string>
-compiler.mobile
-compiler.mxml.compatibility-version <version>
-compiler.mxml.minimum-supported-version <string>
-compiler.namespaces.namespace [uri] [manifest] [...]
-compiler.omit-trace-statements
-compiler.optimize
-compiler.preloader <string>
-compiler.report-invalid-styles-as-warnings
-compiler.services <filename>
-compiler.show-actionscript-warnings
-compiler.show-binding-warnings
-compiler.show-invalid-css-property-warnings
-compiler.show-shadowed-device-font-warnings
-compiler.show-unused-type-selector-warnings
-compiler.source-path [path-element] [...]
-compiler.strict
-compiler.theme [filename] [...]
-compiler.use-resource-bundle-metadata
-compiler.verbose-stacktraces
-framework <string>
-help [keyword] [...]
-include-resource-bundles [bundle] [...]
-licenses.license <product> <serial-number>
-load-config <filename>
-metadata.contributor <name>
-metadata.creator <name>
-metadata.date <text>
-metadata.description <text>
-metadata.language <code>
-metadata.localized-description <text> <lang>
-metadata.localized-title <title> <lang>
-metadata.publisher <name>
-metadata.title <text>
-output <filename>
-runtime-shared-libraries [url] [...]
-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
-static-link-runtime-shared-libraries
-swf-version <int>
-target-player <version>
-tools-locale <string>
-use-direct-blit
-use-gpu
-use-network
-version
-warnings