Skip to content

Commit f0e69cf

Browse files
committed
Update to current versions of deps using node v14
1 parent 3681568 commit f0e69cf

File tree

8 files changed

+3958
-4802
lines changed

8 files changed

+3958
-4802
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14.17.4
1+
14.21.3

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Or, use *Nginx*
3232

3333
*PostCSS* modules
3434

35-
- postcss-cssnext, postcss-import, postcss-nested
35+
- postcss-import, postcss-nested
3636

3737
*Compile* styles, runs in `make build`
3838

@@ -118,6 +118,11 @@ Content-Encoding
118118
gzip
119119
```
120120

121+
## Troubleshooting
122+
123+
- issue with `node-gyp`
124+
`xcode-select --install`
125+
`npm install -g node-gyp`
121126

122127
[typescript]: https://www.typescriptlang.org/
123128
[webdriver]: http://webdriver.io/guide.html

bin/process-css.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ const path = require('path');
55
const postcss = require('postcss');
66
const importcss = require('postcss-import');
77
const nestedcss = require('postcss-nested');
8-
const cssnext = require('postcss-cssnext');
98

109
const src = 'styles/app.css';
1110
const dest = 'dist/styles.css';
1211

1312
fs.readFile(file(src), (err, css) => {
14-
postcss([importcss, nestedcss, cssnext])
13+
postcss([importcss, nestedcss])
1514
.process(css, { from: src, to: dest })
1615
.then(result => {
1716
fs.writeFileSync(file(dest), result.css);

main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const express = require('express');
2-
const proxy = require('http-proxy-middleware');
2+
const { createProxyMiddleware } = require('http-proxy-middleware');
33
const app = express();
44
const path = require('path');
55

@@ -20,9 +20,9 @@ app.get('/script.js', (req, res) => res.sendFile(js));
2020
app.use(express.static(DIR));
2121
// app.use('/', express.static(path.join(__dirname, DIR)));
2222

23-
const API = ['http://localhost:3000', 'https://pixelhandler.dev'][1];
23+
const API = ['http://localhost:3000', 'https://pixelhandler.dev'][0];
2424

25-
app.use('/api', proxy({target: API, changeOrigin: true}));
25+
app.use('/api', createProxyMiddleware({target: API, changeOrigin: true}));
2626

2727
app.listen(8081, function () {
2828
console.log('Running at http://localhost:8081');

0 commit comments

Comments
 (0)