Skip to content

Commit

Permalink
chore: clean up some www issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Jul 4, 2019
1 parent 33d7551 commit 98b1f77
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 25 deletions.
42 changes: 26 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"rollup-plugin-hypothetical": "^2.1.0",
"rollup-plugin-svelte": "^5.0.3",
"shelljs": "^0.8.3",
"sirv": "^0.4.2",
"snapshot-diff": "^0.5.1",
"sugarss": "^2.0.0",
"svelte": "^2.16.1",
Expand Down
3 changes: 0 additions & 3 deletions packages/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
"node": true
}
},
"devDependencies": {
"sirv": "^0.2.2"
},
"dependencies": {
"@modular-css/processor": "file:../processor",
"@modular-css/rollup": "file:../rollup",
Expand Down
9 changes: 3 additions & 6 deletions packages/www/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const { processor, preprocess } = require("@modular-css/svelte")({

done : [
isProduction ? require("cssnano")() : noop,
]
],
});

const shared = (store) => {
Expand Down Expand Up @@ -65,8 +65,7 @@ module.exports = [
}),

require("rollup-plugin-node-resolve")({
module : true,
browser : true,
mainFields : [ "module", "browser", "main" ],

preferBuiltins : false,
}),
Expand Down Expand Up @@ -140,8 +139,6 @@ module.exports = [
require("./build/rollup-plugin-add-watch-files.js")(),

require("rollup-plugin-node-resolve")({
module : true,

preferBuiltins : false,
}),

Expand All @@ -159,7 +156,7 @@ module.exports = [

// Generate HTML for all the static pages
require("./build/rollup-plugin-generate-html.js")({ bundle }),
]
],
},

];

0 comments on commit 98b1f77

Please sign in to comment.