Skip to content

Commit

Permalink
put bundle in public/build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Nov 15, 2019
1 parent 2377311 commit de50c72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.DS_Store
node_modules
public/bundle.*
public/build
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

<link rel='icon' type='image/png' href='/favicon.png'>
<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>

<body>
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
sourcemap: true,
format: 'iife',
name: 'app',
file: 'public/bundle.js'
file: 'public/build/bundle.js'
},
plugins: [
svelte({
Expand All @@ -22,7 +22,7 @@ export default {
// we'll extract any component CSS out into
// a separate file — better for performance
css: css => {
css.write('public/bundle.css');
css.write('public/build/bundle.css');
}
}),

Expand Down

0 comments on commit de50c72

Please sign in to comment.