Huawei Quick App IDE allows you to customize compilation settings so you can define some required paths during compilation. The customization method is as follows:
Create the quickapp.config.js file in the root directory of your project. Add the following configuration to the file:
module.exports = {
sourceRoot: './src',
signRoot: './sign',
releasePath: './dist',
outputPath: './build',
lintOnBuild: true,
} The settings in the previous file content are all default values.
In addition, Huawei Quick App IDE also supports customization of resolve, module, plugins, and node. The method is similar to that of webpack.
For example, to support TypeScript-based development of your project, you can add the following content to the quickapp.config.js file:
module.exports = {
webpack: {
module: {
rules: [{
test: /\.tsx?$/,
loader: 'babel-loader',
options: {
presets: [
'@babel/preset-env',
'@babel/preset-typescript'
]
},
exclude: /node_modules/,
}]
},
resolve: {
mainFields: ['quickapp', 'main', 'module', 'browser'], // Default configurations since 3.1.1-Stable.300
}
}
} Since the preceding code involves the dependency configuration @babel/preset-typescript, you need to go to the TERMINAL tab page in Huawei Quick App IDE and run the npm i -D @babel/preset-typescript command to install the dependency.









The WebView debug tool is used to debug HTML5 quick apps.
Detailed operations are as follows:
The WebView debug tool can debug only the page displayed on the device, if you close this page during debugging, the tool will display a blank page.