mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-27 01:20:27 +00:00
9751a91eb3
Issue:https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I7HLB5 Signed-off-by: ctw-ian <chentingwei2@huawei.com> Change-Id: I8b83ac655887ff1e679fc1819b0fac72f153e9d3 |
||
---|---|---|
.. | ||
plugin | ||
sample | ||
src | ||
test | ||
third_party | ||
.eslintrc.js | ||
.gitignore | ||
.npmignore | ||
babel.config.js | ||
index.js | ||
main.product.js | ||
module-source.js | ||
npm-install.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
uglify-source.js | ||
webpack.lite.config.js | ||
webpack.rich.config.js |
Ace Loader
A webpack loader for Ace.
Install Dependencies under the ace-loader dir.
npm install
Build built-in sample for Rich devices under the ace-loader dir.
npm run rich
Build built-in sample for Lite devices under the ace-loader dir.
npm run lite
How to build custom ace project
Windows: Step 1. set aceModuleRoot=path/to/your/ace/project Step 2. set aceModuleBuild=path/to/your/jsbundle/build Step 3. node ./node_modules/webpack/bin/webpack.js --config webpack.rich.config.js
Linux: Step 1. export aceModuleRoot=path/to/your/ace/project Step 2. export aceModuleBuild=path/to/your/jsbundle/build Step 3. node ./node_modules/webpack/bin/webpack.js --config webpack.rich.config.js