
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
hc-honeypack-intl-plugin
Advanced tools
基于l20n规范,并考虑开发易用性,开发符合webpack-loader的加载器。
依赖于extract-text-webpack-plugin插件,用于生成一份语言描述文件json格式,l20n的语言描述文件可以分3种类型,分别是.properties文件、.json文件、.l20n文件。naza-l20n-loader暂只支持生成.json文件,以便于后期发布到cdn服务器。
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var poExtractTextPlugin = new ExtractTextPlugin(1, 'app.lang.json');
在webpack其中配置项加入
module: {
loaders: [{
test: /\.properties$/,
loader: poExtractTextPlugin.extract("hc-honeypack-intl-plugin")
}, ...],
}
plugins: [
poExtractTextPlugin,
...
]
module和plugins是webpack的配置项,module用于配置加载器,当webpack启动时,先通过plugins则是配置编译器插件,上一个plugin执行成功后,才会执行下一个plugin。naza-l20n-loader所做就是在加载时,遍历项目中所有.properties文件,收集文件内容。在编译时,打包生成一个.json文件。java-properties模块,把.properties文件编译成json格式的文件。从而.properies文件支持定义xx.xx.xx格式的文件。在浏览器端通过aliyun-naza-l20n封装一个调用l20n的angular provider。
对于l20n.js在解析文件时,以下格式的json解析会报错,即[other]不能在[one],[two]等最前面
key[other]=xxx
key[one]=xxx
resolveLoader要指向当前目录的node_modulesFAQs
基于l20n规范,并考虑开发易用性,开发符合webpack-loader的加载器。
The npm package hc-honeypack-intl-plugin receives a total of 17 weekly downloads. As such, hc-honeypack-intl-plugin popularity was classified as not popular.
We found that hc-honeypack-intl-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.