Fix cssUrl module resolvers to support node6+

This commit is contained in:
SleepWalker 2016-11-12 11:03:44 +02:00
parent a80e58b640
commit 9e970e690b
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ module.exports = function(loader) {
loader.exec(` loader.exec(`
var __webpack_public_path__ = '${loader.options.output.publicPath}'; var __webpack_public_path__ = '${loader.options.output.publicPath}';
${source} ${source}
`) + urlPostfix(url) `, dirname) + urlPostfix(url)
) )
) : resolve(url) ) : resolve(url)
) )

View File

@ -205,7 +205,7 @@ var webpackConfig = {
// when @imported files may be processed mutiple times // when @imported files may be processed mutiple times
fileCache[filename] = new Promise((resolve, reject) => fileCache[filename] = new Promise((resolve, reject) =>
this.loadModule(filename, (err, source) => this.loadModule(filename, (err, source) =>
err ? reject(err) : resolve(this.exec(source)) err ? reject(err) : resolve(this.exec(source, rootPath))
) )
); );
} }