Work around css-loader issue during testing

This commit is contained in:
Jan Nicklas 2015-11-23 13:37:27 +01:00 committed by Jan Nicklas
parent 2ef2ead8ff
commit c556925234
2 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,7 @@
"homepage": "https://github.com/ampedandwired/html-webpack-plugin",
"devDependencies": {
"css-loader": "^0.23.0",
"es6-promise": "^3.0.2",
"extract-text-webpack-plugin": "^0.9.1",
"file-loader": "^0.8.4",
"jasmine-node": "^1.14.5",

View File

@ -1,4 +1,11 @@
'use strict';
// Workaround for css-loader issue
// https://github.com/webpack/css-loader/issues/144
if (!global.Promise) {
require('es6-promise').polyfill();
}
var path = require('path');
var fs = require('fs');
var webpack = require('webpack');