feat: ngrok setup
This commit is contained in:
+19
-2
@@ -16,6 +16,18 @@ module.exports = merge(common, {
|
|||||||
filename: 'js/[name].[contenthash].bundle.js',
|
filename: 'js/[name].[contenthash].bundle.js',
|
||||||
},
|
},
|
||||||
// Spin up a server for quick development
|
// Spin up a server for quick development
|
||||||
|
// devServer: {
|
||||||
|
// historyApiFallback: true,
|
||||||
|
// contentBase: path.normalize(paths.build),
|
||||||
|
// index: '/',
|
||||||
|
// open: true,
|
||||||
|
// compress: true,
|
||||||
|
// hot: true,
|
||||||
|
// port: 3000,
|
||||||
|
// host: 'test.manaknightdev.com',
|
||||||
|
// https: true,
|
||||||
|
// noInfo: true, //This turns off information regarding the bundle. Set to false if you need to view the messages
|
||||||
|
// },
|
||||||
devServer: {
|
devServer: {
|
||||||
historyApiFallback: true,
|
historyApiFallback: true,
|
||||||
contentBase: path.normalize(paths.build),
|
contentBase: path.normalize(paths.build),
|
||||||
@@ -24,9 +36,14 @@ module.exports = merge(common, {
|
|||||||
compress: true,
|
compress: true,
|
||||||
hot: true,
|
hot: true,
|
||||||
port: 3000,
|
port: 3000,
|
||||||
host: 'test.manaknightdev.com',
|
host: '0.0.0.0',
|
||||||
https: true,
|
https: true,
|
||||||
noInfo: true, //This turns off information regarding the bundle. Set to false if you need to view the messages
|
allowedHosts: [
|
||||||
|
'.ngrok-free.app', // allow any ngrok subdomain
|
||||||
|
// 'localhost',
|
||||||
|
'test.manaknightdev.com',
|
||||||
|
],
|
||||||
|
noInfo: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
module: {
|
module: {
|
||||||
|
|||||||
@@ -3,9 +3,6 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
|
||||||
"node": "18.x"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "cross-env NODE_ENV=development webpack serve --config config/webpack.dev.js",
|
"start": "cross-env NODE_ENV=development webpack serve --config config/webpack.dev.js",
|
||||||
"prep": "yarn && yarn prepare-husky && yarn start",
|
"prep": "yarn && yarn prepare-husky && yarn start",
|
||||||
|
|||||||
Reference in New Issue
Block a user