Skip to content

support custom resource extensions in <script> and <style> tags #924

Description

@thescientist13

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

Observed in ProjectEvergreen/greenwood-getting-started#54 that although resource plugins allow using custom extensions for ESM, like for TypeScript or SCSS in JavaScript using import, but this behavior is not supported in <script> and <style> tags.

Details

So basically, you can do this

import { FooterComponent } from './footer.ts';

// or this

import css from './styles.scss?type=css';

But we need to make sure user's can also do this

<script type="module" src="./footer.ts"/>


<link rel="stylesheet" href="./styles.scss"/>

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions