This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config(); | |
const https = require('https'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const Express = require('express'); | |
const app = new Express(); | |
app.get('/', (req, res) => res.send('Hello World!!')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "NODE_EXTRA_CA_CERTS=$(mkcert -CAROOT)/rootCA.pem" >> .env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ngrok http 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
... | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
use: [ | |
'thread-loader', | |
'babel-loader' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
... | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
use: [ | |
'thread-loader', | |
'babel-loader' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const threadLoader = require('thread-loader'); | |
threadLoader.warmup({ | |
// pool options, like passed to loader options | |
// must match loader options to boot the correct pool | |
}, [ | |
// modules to load | |
// can be any module, i. e. | |
'babel-loader', | |
'babel-preset-es2015', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
const threadLoader = require('thread-loader'); | |
const jsWorkerPool = { | |
poolTimeout: 2000 | |
}; | |
const cssWorkerPool = { | |
workerParallelJobs: 2, | |
poolTimeout: 2000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
use: ['cache-loader', 'babel-loader'], | |
include: path.resolve('src'), | |
}, | |
], | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"debug": true, | |
"show_panel_on_save": "view", | |
"linters": { | |
"eslint": { | |
"args": [ | |
"--rule", | |
"import/no-unresolved: 0", | |
"--rule", | |
"import/no-cycle: 0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"defaults": { | |
"custom_template_tags": false, | |
"flow_types": false, | |
"jsx": false, | |
}, | |
"configurations": { | |
"Default": {}, | |
"React": { |