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

Not inlining <script data-main> #204

Open
tarekeldeeb opened this issue Nov 5, 2019 · 2 comments
Open

Not inlining <script data-main> #204

tarekeldeeb opened this issue Nov 5, 2019 · 2 comments

Comments

@tarekeldeeb
Copy link

HTML having

<script data-main="app.js" src="require.js"></script>

will only get require.js inlined, app.js will be ignored ..

The output looks as:

<script data-main="app.js"> ... __COMPRESSED_CONTENT_OF_REQUIRE.JS__..</script>

Apparently, the inlined page does not display correctly without app.js.

@tarekeldeeb
Copy link
Author

Trying to find a workaround by splitting that line, first sourcing require.js, then

<script>require(["app.js"]);</script>

Unfortunately, the above line does not get inlined as well.

@remy
Copy link
Owner

remy commented Nov 5, 2019 via email

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

2 participants