Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e19358d

Browse files
committedOct 31, 2018
update tailwind version, modify for glitch
1 parent 216bae2 commit e19358d

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed
 

‎README.md

+6
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ After that you will have a ready to deploy bundle at `/dist`
3333
## Contributing
3434

3535
Have a lot of experience with Webpack and suggestions on how we could improve this starter template? We'd love a PR!
36+
37+
## Run on Glitch
38+
39+
1. Open console in Advanced Options.
40+
2. Tailwind needs access to Webpack to work. To allow this, copy the following command into terminal: ```chmod -R u+x node_modules/webpack/bin```. You only need to do this once per session.
41+
3. To start Tailwind: ```npm run dev```.

‎package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"private": true,
33
"scripts": {
44
"dev": "cross-env NODE_ENV=development webpack-dev-server",
5-
"prod": "cross-env NODE_ENV=production webpack --no-progress"
5+
"prod": "cross-env NODE_ENV=production webpack --no-progress",
6+
"start": "node server.js"
67
},
78
"devDependencies": {
89
"cross-env": "^5.1",
@@ -12,7 +13,7 @@
1213
"postcss": "^6.0.19",
1314
"postcss-loader": "^2.1.1",
1415
"style-loader": "^0.20.3",
15-
"tailwindcss": ">=0.6.5",
16+
"tailwindcss": ">=0.6.6",
1617
"webpack": "^4.1.1",
1718
"webpack-cli": "^2.0.12",
1819
"webpack-dev-server": "^3.1.1"

‎server.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// server.js
2+
// where your node app starts
3+
4+
// init project
5+
var express = require('express');
6+
var app = express();
7+
8+
// we've started you off with Express,
9+
// but feel free to use whatever libs or frameworks you'd like through `package.json`.
10+
11+
// http://expressjs.com/en/starter/static-files.html
12+
app.use(express.static('src'));
13+
14+
// http://expressjs.com/en/starter/basic-routing.html
15+
app.get("/", function (request, response) {
16+
response.sendFile(__dirname + '/index.html');
17+
});
18+
19+
// listen for requests :)
20+
var listener = app.listen(process.env.PORT, function () {
21+
console.log('Your app is listening on port ' + listener.address().port);
22+
});

0 commit comments

Comments
 (0)
This repository has been archived.