prerender-vue-webpack-plugin
Advanced tools
Changelog
[2.1.0] - 2020-11-20
serverBundle
when instantiating a bundle renderer rather than the raw bundle source. This ensures that dependent bundles of the Vue app are properly referenced and can be rendered. Associating serverBundle.entry
with {@link this.entry}
in the case where we have multiple Vue applications.apply
webpack hook, we write the contents of {@link this.template}
to the output path. This helps downstream processes that may rely on some form of output existing.mkdirp
to attempt to recursively create the directory passed as an option to the plugin instance (this.outputPath
). This helps guarantee that the directoy exists before attempting to write there.Changelog
[2.0.2] - 2020-11-14
Changelog
[2.0.1] - 2020-11-14
options.context
for template data which didn't match the documentation. Passing options.templateContext
now behaves as expected.afterEmit
tap is firing when application assets are emitted and when VueSSRServerPlugin
emits the server bundle file. Introduced logic that ensures the assets needed for rendering the Vue app and inlining CSS via Critters is available when executing the HTML transformations regardless of order to call of afterEmit
.Changelog
[2.0.0] - 2020-11-13
vue-server-renderer
as a direct dependency of the plugin as clients versions of vue-loader
/vue-template-compiler
may cause build conflicts. The package is now defined as a peer dependency. PrerenderVueWebpackPlugin
is now a default export.const PrerenderVueWebpackPlugin = require("prerender-vue-webpack-plugin");