Skip to content

Commit f6352c1

Browse files
justquanyinnjugray
authored andcommitted
fix(webpack): isomorphic webpack set __webpack_public_path__ default value, fix #76 (#78)
1 parent 872e180 commit f6352c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/beidou-webpack/lib/plugin/isomorphic.js

+5
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ IsomorphicPlugin.prototype.apply = function (compiler) {
6262
);
6363
}
6464

65+
// if not assign the __webpack_public_path__ value , set it default
66+
if (!global.__webpack_public_path__) {
67+
global.__webpack_public_path__ = compiler.options.output.publicPath;
68+
}
69+
6570
compiler.plugin('done', (stats) => {
6671
const json = stats.toJson();
6772

0 commit comments

Comments
 (0)