Closed mlrawlings closed 3 years ago
The <webpack-assets> tag can be used along with the plugin in a multi-compiler setup. This tag allows you to inject <script>/<style> tags into a server-rendered template for the assets of an entry in the client compiler.
<webpack-assets>
<script>
<style>
<webpack-assets entry="tracking"/>
// ... export default [ { entry: "./server.js", plugins: [markoPlugin.server] // ... }, { // ... entry: { tracking: "./tracking.js" }, plugins: [markoPlugin.browser] } ];
Description
The
<webpack-assets>
tag can be used along with the plugin in a multi-compiler setup. This tag allows you to inject<script>
/<style>
tags into a server-rendered template for the assets of an entry in the client compiler.Example Usage
Example Config
Motivation and Context
Checklist: