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

add demo css and js files in index.html #7388

Closed
maxkarkowski opened this issue Nov 30, 2021 · 3 comments
Closed

add demo css and js files in index.html #7388

maxkarkowski opened this issue Nov 30, 2021 · 3 comments

Comments

@maxkarkowski
Copy link

🙋 feature request

I want to build a js lib with some demo styling inside the index.html.

🤔 Expected Behavior

Want to have a way to exclude files from compiling. only for development and demo envs

😯 Current Behavior

every css and js i set in the index.html go through the paprcel compiler

💁 Possible Solution

Maybe some Ignore next statements in index.html

💻 Examples

<html>
<head>
<!-- should be in the build-->
 <script type="module" src="./index.ts"></script>
 <!-- next line only for development or demo page, not be included in build-->
 <link rel="stylesheet" type="text/css" href="./demo/merged.css" media="all" />
</head>
<body>
<h1> Here is my demo app </h1>

</body>

</html>
@folknor
Copy link

folknor commented Dec 4, 2021

This is probably a duplicate of #1087

@folknor
Copy link

folknor commented Dec 4, 2021

Or #1186 - frankly I can't immediately glance how #1087 and #1186 differ.

@mischnic
Copy link
Member

mischnic commented Dec 4, 2021

Indeed.

Furthermore, I don't understand the usecase here. The whole HTML file is "the demo", so why would you only want to include the stylesheet "only in the demo"?

@mischnic mischnic closed this as completed Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants