diff --git a/rollup.config.js b/rollup.config.js index 5a323cb..4f1ea65 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -11,9 +11,9 @@ export default { output: { sourcemap: true, format: 'iife', + name: 'app', file: 'public/bundle.js' }, - name: 'app', plugins: [ svelte({ // enable run-time checks when not in production @@ -24,6 +24,9 @@ export default { css.write('public/bundle.css'); }, + // enable https://svelte.technology/guide#state-management + store: true, + // this results in smaller CSS files cascade: false }), @@ -41,4 +44,4 @@ export default { production && buble({ exclude: 'node_modules/**' }), production && uglify() ] -}; \ No newline at end of file +};