json5-loader
A webpack loader for parsing json5 files into JavaScript objects.
To begin, you’ll need to install :
- 或者,直接在 require 语句中使用 前缀。
假设我们有如下 文件:
file.json5
require 语句使用 loader 前缀的用法
如果需要在 Node.js 中使用,不要忘记兼容(polyfill) require。更多参考 webpack 文档。
Please take a moment to read our contributing guidelines if you haven’t yet done so.