https://github.com/brad/jasonette-webpack-plugin
Output JSON usable with Jasonette
https://github.com/brad/jasonette-webpack-plugin
jasonette javascript json webpack webpack-plugin
Last synced: 6 months ago
JSON representation
Output JSON usable with Jasonette
- Host: GitHub
- URL: https://github.com/brad/jasonette-webpack-plugin
- Owner: brad
- License: mit
- Created: 2017-04-15T04:46:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T04:38:47.000Z (about 9 years ago)
- Last Synced: 2025-10-30T01:47:45.437Z (8 months ago)
- Topics: jasonette, javascript, json, webpack, webpack-plugin
- Language: JavaScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/brad/jasonette-webpack-plugin) [](https://codecov.io/gh/brad/jasonette-webpack-plugin) [](https://codeclimate.com/github/brad/jasonette-webpack-plugin) [](https://badge.fury.io/js/jasonette-webpack-plugin)
# Jasonette Webpack Plugin
The Jasonette Webpack plugin aims to take some of the pain out of writing JSON for [Jasonette](https://jasonette.com/). With this plugin, your JSON is just an export of a JavaScript object. Some of the benefits you get with this approach:
- You can use comments
- No need to quote object properties
- You can use single quotes for strings
- Object values are automatically converted to strings
- You can use trailing commas
- Functions are automatically exported for use in Jasonette templates
- Automatic minification of your JSON, which can reduce the file size by a lot
- Access to the whole node ecosystem
## Install
`npm install jasonette-webpack-plugin`
Example usage coming soon!