Skip to content

Commit f4c5396

Browse files
committed
fix(rollup): remove public from bundle css file
1 parent 2cb6186 commit f4c5396

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rollup.config.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import svelte from 'rollup-plugin-svelte';
22
import resolve from 'rollup-plugin-node-resolve';
33
import commonjs from 'rollup-plugin-commonjs';
44
import livereload from 'rollup-plugin-livereload';
5-
import { terser } from 'rollup-plugin-terser';
65
import replace from 'rollup-plugin-replace';
76
import autoPreprocess from 'svelte-preprocess';
7+
import { terser } from 'rollup-plugin-terser';
88

99
const production = !process.env.ROLLUP_WATCH;
1010

@@ -23,12 +23,12 @@ export default {
2323
// we'll extract any component CSS out into
2424
// a separate file — better for performance
2525
css: css => {
26-
css.write('public/bundle.css');
26+
css.write('bundle.css');
2727
},
28-
28+
2929
preprocess: autoPreprocess()
3030
}),
31-
31+
3232
// If you have external dependencies installed from
3333
// npm, you'll most likely need these plugins. In
3434
// some cases you'll need additional configuration —
@@ -43,11 +43,11 @@ export default {
4343
replace({
4444
'process.env': JSON.stringify(process.env)
4545
}),
46-
46+
4747
// Watch the `public` directory and refresh the
4848
// browser on changes when not in production
4949
!production && livereload('public'),
50-
50+
5151
// If we're building for production (npm run build
5252
// instead of npm run dev), minify
5353
production && terser()

0 commit comments

Comments
 (0)