mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-09-29 23:07:31 +05:30
Fix cssUrl module resolvers to support node6+
This commit is contained in:
parent
a80e58b640
commit
9e970e690b
@ -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)
|
||||||
)
|
)
|
||||||
|
@ -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))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user