3.3.1-alpha.3 • Published 10 months ago
@nativescript-community/xml-ui-loader v3.3.1-alpha.3
@nativescript-community/xml-ui-loader
This loader provides support for using @nativescript-community/xml-ui-compiler in Webpack.
Installation
npm install @nativescript-community/xml-ui-loader --save-dev
Usage
webpack.config.js
const webpack = require('@nativescript/webpack');
const { getEntryDirPath, getPlatformName } = require('@nativescript/webpack/dist/helpers/platform');
const { chainLoaderConfiguration } = require("@nativescript-community/xml-ui-loader/helpers");
module.exports = (env) => {
webpack.init(env);
// Learn how to customize:
// https://docs.nativescript.org/webpack
webpack.chainWebpack((config) => {
chainLoaderConfiguration(config, {
appPath: getEntryDirPath(),
platform: getPlatformName()
});
});
return webpack.resolveConfig();
};
There are also few preprocessing options that are useful for applying output customizations.
chainLoaderConfiguration(config, {
appPath: getEntryDirPath(),
platform: getPlatformName(),
useDataBinding: false, // Set this to false if you don't want to use data binding system
preprocess: {
// Format attribute value
attributeValueFormatter: (value, attributeName, tagName, attributes) => value.toUpperCase(),
// Manage AST result
transformAst: (ast, generateFunc) => generateFunc(ast).code,
}
});
3.3.0
12 months ago
3.3.1-alpha.1
10 months ago
3.3.1-alpha.0
10 months ago
3.3.1-alpha.3
10 months ago
3.3.1-alpha.2
10 months ago
3.2.0
1 year ago
3.1.0
1 year ago
3.1.0-alpha.1
1 year ago
3.1.0-alpha.2
1 year ago
3.1.0-alpha.3
1 year ago
3.1.0-alpha.4
1 year ago
2.0.3
1 year ago
2.0.2
1 year ago
3.0.0-alpha.1
1 year ago
3.0.0-alpha.0
1 year ago
2.0.4
1 year ago
3.0.0-alpha.3
1 year ago
3.0.0-alpha.2
1 year ago
3.0.0-alpha.4
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
3.0.0
1 year ago
2.0.0-alpha.0
1 year ago
2.0.0-alpha.1
1 year ago
1.2.6
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago