marko-js / webpack

A loader for marko files and a plugin for universal bundling
MIT License
13 stars 4 forks source link

feat: skip writing dynamic publicPath if publicPath is in output options #31

Closed DylanPiercey closed 4 years ago

DylanPiercey commented 4 years ago

Description

This plugin automatically syncs the webpack_public_path from the server side compilation to the browser side using a global window variable in an injected script.

This code is no longer output if a static publicPath option is configured for both the server side and client side compiler in your webpack config.

Checklist: