Adds support for pwa-node and adds a poll option.
This commit is contained in:
@@ -32,6 +32,14 @@ module.exports = {
|
||||
path: r("dist"),
|
||||
filename: "[name].js",
|
||||
chunkFilename: "[name]-[hash].js",
|
||||
devtoolModuleFilenameTemplate: info => {
|
||||
let result = info.absoluteResourcePath.replace(/\\/g, "/");
|
||||
if (!result.startsWith("file:")) {
|
||||
// Some paths already start with the file scheme.
|
||||
result = "file:///" + result;
|
||||
}
|
||||
return result;
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".webpack.js", ".web.js", ".ts", ".tsx", ".js"],
|
||||
|
||||
Reference in New Issue
Block a user