Minify css for demo docs
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
"mdsvex": "^0.8.9",
|
"mdsvex": "^0.8.9",
|
||||||
"rollup": "^2.3.4",
|
"rollup": "^2.3.4",
|
||||||
"rollup-plugin-babel": "^4.4.0",
|
"rollup-plugin-babel": "^4.4.0",
|
||||||
"rollup-plugin-css-only": "^3.1.0",
|
"rollup-plugin-import-css": "^2.0.1",
|
||||||
"rollup-plugin-livereload": "^2.0.0",
|
"rollup-plugin-livereload": "^2.0.0",
|
||||||
"rollup-plugin-svelte": "^7.0.0",
|
"rollup-plugin-svelte": "^7.0.0",
|
||||||
"rollup-plugin-terser": "^7.0.0",
|
"rollup-plugin-terser": "^7.0.0",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import json from '@rollup/plugin-json'
|
|||||||
import livereload from 'rollup-plugin-livereload'
|
import livereload from 'rollup-plugin-livereload'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
import { terser } from 'rollup-plugin-terser'
|
||||||
import babel from 'rollup-plugin-babel'
|
import babel from 'rollup-plugin-babel'
|
||||||
import css from 'rollup-plugin-css-only'
|
import css from 'rollup-plugin-import-css'
|
||||||
import { mdsvex } from 'mdsvex'
|
import { mdsvex } from 'mdsvex'
|
||||||
|
|
||||||
const production = !process.env.ROLLUP_WATCH
|
const production = !process.env.ROLLUP_WATCH
|
||||||
@@ -76,7 +76,7 @@ export default {
|
|||||||
}),
|
}),
|
||||||
// we'll extract any component CSS out into
|
// we'll extract any component CSS out into
|
||||||
// a separate file - better for performance
|
// a separate file - better for performance
|
||||||
css({ output: 'index.css' }),
|
css({ output: 'index.css', minify: true }),
|
||||||
|
|
||||||
// If you have external dependencies installed from
|
// If you have external dependencies installed from
|
||||||
// npm, you'll most likely need these plugins. In
|
// npm, you'll most likely need these plugins. In
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
import Carousel from './Carousel.svx'
|
import Carousel from './Carousel.svx'
|
||||||
import '../../node_modules/prismjs/themes/prism-tomorrow.css'
|
|
||||||
import './global.css'
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import App from './App.svelte';
|
import App from './App.svelte';
|
||||||
|
import 'prismjs/themes/prism-tomorrow.css'
|
||||||
|
import './global.css'
|
||||||
|
|
||||||
const app = new App({
|
const app = new App({
|
||||||
target: document.body,
|
target: document.body,
|
||||||
|
|||||||
18
yarn.lock
18
yarn.lock
@@ -1404,14 +1404,6 @@
|
|||||||
is-module "^1.0.0"
|
is-module "^1.0.0"
|
||||||
resolve "^1.19.0"
|
resolve "^1.19.0"
|
||||||
|
|
||||||
"@rollup/pluginutils@4":
|
|
||||||
version "4.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.1.0.tgz#0dcc61c780e39257554feb7f77207dceca13c838"
|
|
||||||
integrity sha512-TrBhfJkFxA+ER+ew2U2/fHbebhLT/l/2pRk0hfj9KusXUuRXd2v0R58AfaZK9VXDQ4TogOSEmICVrQAA3zFnHQ==
|
|
||||||
dependencies:
|
|
||||||
estree-walker "^2.0.1"
|
|
||||||
picomatch "^2.2.2"
|
|
||||||
|
|
||||||
"@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0":
|
"@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0":
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
|
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
|
||||||
@@ -9357,12 +9349,12 @@ rollup-plugin-babel@^4.4.0:
|
|||||||
"@babel/helper-module-imports" "^7.0.0"
|
"@babel/helper-module-imports" "^7.0.0"
|
||||||
rollup-pluginutils "^2.8.1"
|
rollup-pluginutils "^2.8.1"
|
||||||
|
|
||||||
rollup-plugin-css-only@^3.1.0:
|
rollup-plugin-import-css@^2.0.1:
|
||||||
version "3.1.0"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/rollup-plugin-css-only/-/rollup-plugin-css-only-3.1.0.tgz#6a701cc5b051c6b3f0961e69b108a9a118e1b1df"
|
resolved "https://registry.yarnpkg.com/rollup-plugin-import-css/-/rollup-plugin-import-css-2.0.1.tgz#73a0b53ecd76c2af418dafd7cef2a72d389dc454"
|
||||||
integrity sha512-TYMOE5uoD76vpj+RTkQLzC9cQtbnJNktHPB507FzRWBVaofg7KhIqq1kGbcVOadARSozWF883Ho9KpSPKH8gqA==
|
integrity sha512-aY8VsOVHAB8RVyNmZP6Np4NeZvMeNc0U7nBMl1q5QX2QIAHSn0veQaW2T1JyzqLY+rLjICb3oEhmHWScZmbd2Q==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@rollup/pluginutils" "4"
|
"@rollup/pluginutils" "^3.1.0"
|
||||||
|
|
||||||
rollup-plugin-livereload@^2.0.0:
|
rollup-plugin-livereload@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user