@@ -2,9 +2,9 @@ import svelte from 'rollup-plugin-svelte';
2
2
import resolve from 'rollup-plugin-node-resolve' ;
3
3
import commonjs from 'rollup-plugin-commonjs' ;
4
4
import livereload from 'rollup-plugin-livereload' ;
5
- import { terser } from 'rollup-plugin-terser' ;
6
5
import replace from 'rollup-plugin-replace' ;
7
6
import autoPreprocess from 'svelte-preprocess' ;
7
+ import { terser } from 'rollup-plugin-terser' ;
8
8
9
9
const production = ! process . env . ROLLUP_WATCH ;
10
10
@@ -23,12 +23,12 @@ export default {
23
23
// we'll extract any component CSS out into
24
24
// a separate file — better for performance
25
25
css : css => {
26
- css . write ( 'public/ bundle.css' ) ;
26
+ css . write ( 'bundle.css' ) ;
27
27
} ,
28
-
28
+
29
29
preprocess : autoPreprocess ( )
30
30
} ) ,
31
-
31
+
32
32
// If you have external dependencies installed from
33
33
// npm, you'll most likely need these plugins. In
34
34
// some cases you'll need additional configuration —
@@ -43,11 +43,11 @@ export default {
43
43
replace ( {
44
44
'process.env' : JSON . stringify ( process . env )
45
45
} ) ,
46
-
46
+
47
47
// Watch the `public` directory and refresh the
48
48
// browser on changes when not in production
49
49
! production && livereload ( 'public' ) ,
50
-
50
+
51
51
// If we're building for production (npm run build
52
52
// instead of npm run dev), minify
53
53
production && terser ( )
0 commit comments