
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
weex-rax-framework
Advanced tools
window
document
navigator
screen
location
fetch
FontFace
var bitterFontFace = new FontFace('Bitter', 'url(https://fonts.gstatic.com/s/bitter/v7/HEpP8tJXlWaYHimsnXgfCOvvDin1pK8aKteLpeZ5c0A.woff2)');
document.fonts.add(bitterFontFace);
var oxygenFontFace = new FontFace('Oxygen', 'url(https://fonts.gstatic.com/s/oxygen/v5/qBSyz106i5ud7wkBU-FrPevvDin1pK8aKteLpeZ5c0A.woff2)');
document.fonts.add(oxygenFontFace);
URL
URLSearchParams
alert
define
require
__weex_downgrade__
__weex_env__
__weex_define__
__weex_require__
const webpack = require('webpack');
const RaxPlugin = require('rax-webpack-plugin');
module.exports = {
target: 'node',
entry: {
// Entry name should ends with `.factory`
'your-module.factory' : './src/index.js',
},
output: {
path: './dist/',
filename: '[name].js',
},
plugins: [
new RaxPlugin({
// Your could config builtinModules here
externalBuiltinModules: false,
builtinModules: RaxPlugin.BuiltinModules,
});
],
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel', // 'babel-loader' is also a legal name to reference
query: {
presets: ['es2015', 'rax']
}
}]
}
}
Then publish module with factory build file to npm registry:
npm publish
Or link
module in local:
npm link
builtin.js
in framework sourceInstall builtin module from npm:
npm install your-module --save
Or link from local:
npm link your-module
Config builtin.js
and add your custom builtin module:
export let ModuleFactories = {
'rax': require('rax/dist/rax.factory'),
// Add your builtin module
'your-module': require('your-module/dist/your-module.factory'),
};
const webpack = require('webpack');
const RaxPlugin = require('rax-webpack-plugin');
module.exports = {
target: 'node',
entry: {
// Entry name should ends with `.framework`
'rax.framework': './packages/weex-rax-framework/src/index.js',
},
output: {
path: './packages/weex-rax-framework/dist/',
filename: '[name].js',
},
plugins: [
new RaxPlugin();
],
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel', // 'babel-loader' is also a legal name to reference
query: {
presets: ['es2015']
}
}]
}
}
jsfm
including weex-rax-framework
?git clone git@github.com:alibaba/weex.git
cd weex
npm install
weex-rax-framework
npm install weex-rax-framework
Or
npm link weex-rax-framework
weex-rax-framework
Update html5/frameworks/index.js
file with below content:
import * as Weex from './legacy/index'
import Rax from 'weex-rax-framework'
export default {
Rax,
Weex
}
jsfm
for native renderer to dist/native.js
npm run build:native
dist/native.js
to weex-sdk
cp -vf ./dist/native.js ./android/sdk/assets/main.js
cp -vf ./dist/native.js ./ios/sdk/WeexSDK/Resources/main.js
FAQs
Rax framework for weex.
The npm package weex-rax-framework receives a total of 14 weekly downloads. As such, weex-rax-framework popularity was classified as not popular.
We found that weex-rax-framework demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.