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 ead6d4a2c8
commit e813b0576a
2 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,7 @@
"devDependencies": {
"appcache-webpack-plugin": "^1.2.1",
"css-loader": "^0.23.0",
"es6-promise": "^3.0.2",
"extract-text-webpack-plugin": "^0.9.1",
"file-loader": "^0.8.4",
"html-loader": "^0.3.0",

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');