Skip to content

Question: How to handle global styles generated? #97

@telmaantunes

Description

@telmaantunes

After building a vue 2 application we usually have a folder like this:

Screenshot 2022-04-21 at 18 33 27

This index.html file is not going to be imported from single-spa, so I've removed the HtmlWebpackPlugin as recommend, which skips the index.html.

Screenshot 2022-04-21 at 18 29 52

However, this index.html file imported the global styles generated from vue.

<script defer="defer" src="/main.82db85a9.js" nomodule>

After removing it, my spa only requires the css files from the views, not the "main.hash.js" file (which contains the styles from global components and such).

How can I fix this? While still using hashed files?

Thanks for the help!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions