Commit af8e6f6f authored by Robert Knight's avatar Robert Knight

Specify stringify transform in package.json

For consistency with how other transforms are specified, specify the
stringify transform in package.json instead of in code in the
create-bundle.js script and the Karma config.
parent d82a52b9
......@@ -2,7 +2,6 @@
// Karma configuration
var path = require('path');
var stringify = require('stringify');
module.exports = function(config) {
config.set({
......@@ -59,11 +58,6 @@ module.exports = function(config) {
configure: function (bundle) {
bundle
.transform('coffeeify')
.transform(stringify, {
appliesTo: {
includeExtensions: ['.html'],
},
})
.plugin('proxyquire-universal')
// fix for Proxyquire in PhantomJS 1.x.
// See https://github.com/bitwit/proxyquireify-phantom-menace
......
......@@ -102,7 +102,10 @@
"browserify": {
"transform": [
"browserify-ngannotate",
"browserify-shim"
"browserify-shim",
["stringify", {
"appliesTo": {"includeExtensions": [".html"]}
}]
]
},
"browser": {
......
......@@ -11,7 +11,6 @@ var coffeeify = require('coffeeify');
var exorcist = require('exorcist');
var gulpUtil = require('gulp-util');
var mkdirp = require('mkdirp');
var stringify = require('stringify');
var uglifyify = require('uglifyify');
var watchify = require('watchify');
......@@ -118,12 +117,6 @@ module.exports = function createBundle(config, buildOpts) {
var bundle = browserify([], bundleOpts);
bundle.transform(stringify, {
appliesTo: {
includeExtensions: ['.html'],
},
});
(config.require || []).forEach(function (req) {
// When another bundle uses 'bundle.external(<module path>)',
// the module path is rewritten relative to the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment