mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
54 lines
1.3 KiB
HTML
54 lines
1.3 KiB
HTML
<link rel="stylesheet" href="./linked.css" />
|
|
<link rel="stylesheet" href="./linked-with-import.css" />
|
|
|
|
<style>
|
|
.inline {
|
|
color: red;
|
|
}
|
|
</style>
|
|
|
|
<div class="wrapper">
|
|
<h1>CSS Sourcemap</h1>
|
|
|
|
<p class="inline"><inline></p>
|
|
|
|
<p class="linked"><linked>: no import</p>
|
|
<p class="linked-with-import"><linked>: with import</p>
|
|
|
|
<p class="imported"><imported>: no import</p>
|
|
<p class="imported-with-import"><imported>: with import</p>
|
|
|
|
<p class="imported-sass"><imported sass></p>
|
|
<p class="imported-sass-module"><imported sass> with module</p>
|
|
|
|
<p class="imported-less"><imported less> with string additionalData</p>
|
|
|
|
<p class="imported-stylus"><imported stylus></p>
|
|
|
|
<p class="imported-sugarss"><imported sugarss></p>
|
|
|
|
<p class="input-map"><input source-map></p>
|
|
</div>
|
|
|
|
<script type="module">
|
|
import './imported.css'
|
|
import './imported-with-import.css'
|
|
|
|
import './imported.sass'
|
|
import sassModule from './imported.module.sass'
|
|
|
|
document
|
|
.querySelector('.imported-sass-module')
|
|
.classList.add(sassModule['imported-sass-module'])
|
|
|
|
import './imported.less'
|
|
|
|
import './imported.styl'
|
|
|
|
import './imported.sss'
|
|
|
|
import './input-map.css'
|
|
</script>
|
|
|
|
<iframe src="virtual.html"></iframe>
|