Skip to content

Commit e2b7e28

Browse files
committed
rename styles.css to main.css, update build script
1 parent 72ead01 commit e2b7e28

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "topiary-ui",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Development repo for the topiary-io admin UI",
55
"main": "server.js",
66
"scripts": {
77
"dev": "npm run watch & npm run styles & nodemon server.js && fg",
8-
"build": "browserify -t [ babelify --presets es2015 --plugins [mjsx transform-object-rest-spread] ] src/index.js -o bundle.js",
8+
"build": "browserify -t [ babelify --presets es2015 --plugins [mjsx transform-object-rest-spread] ] src/index.js -o bundle.js && stylus -u jeet src/styles/main.styl -o main.css",
99
"styles": "stylus -u jeet -w src/styles/main.styl -o main.css",
1010
"watch": "watchify -vd -t [ babelify --presets es2015 --plugins [mjsx transform-object-rest-spread] ] -p browserify-hmr src/index.js -o bundle.js",
1111
"test": "echo \"Error: no test specified\" && exit 1",

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ app.use(express.static("./"))
88

99
app.use("*", (req, res, next) => {
1010
res.send(
11-
"<!doctype html><meta charset='utf-8'><title>Mithril-Redux</title><link rel='stylesheet' href='/styles.css'><script>window.ADMIN_ROOT=\"/mithril-ui/\"</script><script defer src='/bundle.js'></script><div class='loader'>Loading...</div>"
11+
"<!doctype html><meta charset='utf-8'><title>Mithril-Redux</title><link rel='stylesheet' href='/main.css'><script>window.ADMIN_ROOT=\"/mithril-ui/\"</script><script defer src='/bundle.js'></script><div class='loader'>Loading...</div>"
1212
)
1313
})
1414

0 commit comments

Comments
 (0)