-
-
Save tivac/0c353a4e0fb32ab05e05a2eac26a1f24 to your computer and use it in GitHub Desktop.
rollup-plugin-svelte & modular-css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example usage of svelte-preprocess support for modular-css | |
// https://github.com/tivac/modular-css/compare/svelte-preprocessing?expand=1 | |
const { preprocess, plugin } = require("modular-css-rollup/svelte")({ | |
// normal modular-css args passed to processor | |
// https://github.com/tivac/modular-css/blob/master/docs/api.md#options | |
css : "./dist/out.css" | |
}); | |
module.exports = { | |
input : "Component.html", | |
output : { | |
file : "./dist/out.js", | |
format : "iife" | |
}, | |
plugins: [ | |
require("rollup-plugin-svelte", { | |
preprocess | |
}), | |
plugin | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment