Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore a script file in index.html when building #116

Closed
wobsoriano opened this issue May 10, 2020 · 0 comments
Closed

Ignore a script file in index.html when building #116

wobsoriano opened this issue May 10, 2020 · 0 comments

Comments

@wobsoriano
Copy link

Hi. Thank you for this one.

I am trying to add materializecss to my vite app by just adding the stylesheet and script src in index.html. It works well in development but when building, materializecss gives an error:

materialize.min.js:6 Uncaught TypeError: Cannot use 'in' operator to search for 'Array' in undefined
    at Object.$jscomp.polyfill (materialize.min.js:6)
    at materialize.min.js:6

When I checked the index.html file inside dist folder, I noticed that vite also included it in the build. Is there an option to skip this one? Thank you.

Here's a sample repo: https://github.com/sorxrob/vite-coil-simulator and here's the deployed app https://vitecoil-ge8gjal1x.now.sh/

Any help would be much appreciated.

@wobsoriano wobsoriano changed the title Ignore script in index.html when building Ignore a script file in index.html when building May 10, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant