I've set up a sveltekit project with scss support locally. But all the generated JS and CSS is inline.
How to generate a bundle.js
and bundle.css
with sourcemaps at development time?
svelte.config.js ( SvelteKit v1.0.0-next.144 )
import preprocess from 'svelte-preprocess';
const production = !process.env.ROLLUP_WATCH;
const config = {
kit: {
target: '#svelte'
},
preprocess: preprocess({
scss: {
includePaths: ['src'],
prependData: `@import 'src/style/_config.scss';`
},
sourceMap: true,
}),
compilerOptions: {
dev: !production
}
};
export default config;