put bundle in public/build

This commit is contained in:
Rich Harris 2019-11-15 18:26:14 -05:00
parent 23773116a2
commit de50c72294
3 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
.DS_Store .DS_Store
node_modules node_modules
public/bundle.* public/build

View file

@ -8,9 +8,9 @@
<link rel='icon' type='image/png' href='/favicon.png'> <link rel='icon' type='image/png' href='/favicon.png'>
<link rel='stylesheet' href='/global.css'> <link rel='stylesheet' href='/global.css'>
<link rel='stylesheet' href='/bundle.css'> <link rel='stylesheet' href='/build/bundle.css'>
<script defer src='/bundle.js'></script> <script defer src='/build/bundle.js'></script>
</head> </head>
<body> <body>

View file

@ -13,7 +13,7 @@ export default {
sourcemap: true, sourcemap: true,
format: 'iife', format: 'iife',
name: 'app', name: 'app',
file: 'public/bundle.js' file: 'public/build/bundle.js'
}, },
plugins: [ plugins: [
svelte({ svelte({
@ -22,7 +22,7 @@ export default {
// we'll extract any component CSS out into // we'll extract any component CSS out into
// a separate file — better for performance // a separate file — better for performance
css: css => { css: css => {
css.write('public/bundle.css'); css.write('public/build/bundle.css');
} }
}), }),