brad/jasonette-webpack-plugin

View on GitHub
README.md

Summary

Maintainability
Test Coverage
[![Build Status](https://travis-ci.org/brad/jasonette-webpack-plugin.svg?branch=master)](https://travis-ci.org/brad/jasonette-webpack-plugin) [![codecov](https://codecov.io/gh/brad/jasonette-webpack-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/brad/jasonette-webpack-plugin) [![Code Climate](https://codeclimate.com/github/brad/jasonette-webpack-plugin/badges/gpa.svg)](https://codeclimate.com/github/brad/jasonette-webpack-plugin) [![npm version](https://badge.fury.io/js/jasonette-webpack-plugin.svg)](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!