Bump webpack-dev-server from 3.1.0 to 4.0.0
This commit is contained in:
parent
1449180131
commit
383c903aa1
4 changed files with 496 additions and 1300 deletions
|
@ -39,7 +39,7 @@
|
||||||
},
|
},
|
||||||
"homepage": "./src",
|
"homepage": "./src",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"web": "webpack-dev-server --mode=development --hot",
|
"web": "webpack serve",
|
||||||
"build": "webpack --mode=production",
|
"build": "webpack --mode=production",
|
||||||
"start": "concurrently -k \"yarn web\" \"npm:electron\"",
|
"start": "concurrently -k \"yarn web\" \"npm:electron\"",
|
||||||
"electron": "wait-on tcp:8080 && electron .",
|
"electron": "wait-on tcp:8080 && electron .",
|
||||||
|
@ -94,8 +94,8 @@
|
||||||
"ts-loader": "^9.2.3",
|
"ts-loader": "^9.2.3",
|
||||||
"wait-on": "^6.0.0",
|
"wait-on": "^6.0.0",
|
||||||
"webpack": "^5.41.1",
|
"webpack": "^5.41.1",
|
||||||
"webpack-cli": "^3.3.12",
|
"webpack-cli": "^4.8.0",
|
||||||
"webpack-dev-server": "^3.11.0"
|
"webpack-dev-server": "^4.0.0"
|
||||||
},
|
},
|
||||||
"presets": [
|
"presets": [
|
||||||
"@babel/preset-env",
|
"@babel/preset-env",
|
||||||
|
|
|
@ -20,6 +20,7 @@ const App = () => {
|
||||||
const [status, setStatus] = useState(0);
|
const [status, setStatus] = useState(0);
|
||||||
const SerialDataListener = (data: string) => {
|
const SerialDataListener = (data: string) => {
|
||||||
const parsedData = data.split(",");
|
const parsedData = data.split(",");
|
||||||
|
console.log(parsedData);
|
||||||
setStatus(parseInt(parsedData[2], 10));
|
setStatus(parseInt(parsedData[2], 10));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||||
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
|
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
|
||||||
|
|
||||||
module.exports = (env, argv) => {
|
module.exports = (env, argv) => {
|
||||||
const nodeModules = {};
|
const nodeModules = { };
|
||||||
fs.readdirSync("node_modules")
|
fs.readdirSync("node_modules")
|
||||||
.filter((x) => [".bin"].indexOf(x) === -1)
|
.filter((x) => [".bin"].indexOf(x) === -1)
|
||||||
.forEach((mod) => {
|
.forEach((mod) => {
|
||||||
|
@ -21,7 +21,6 @@ module.exports = (env, argv) => {
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".tsx", ".ts", ".js"],
|
extensions: [".tsx", ".ts", ".js"],
|
||||||
},
|
},
|
||||||
devServer: { contentBase: path.join(__dirname, "src") },
|
|
||||||
devtool: "source-map",
|
devtool: "source-map",
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
@ -74,7 +73,6 @@ module.exports = (env, argv) => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
watch: true,
|
|
||||||
target: "electron-renderer",
|
target: "electron-renderer",
|
||||||
externals: nodeModules,
|
externals: nodeModules,
|
||||||
};
|
};
|
||||||
|
|
1785
Dashboard/yarn.lock
1785
Dashboard/yarn.lock
File diff suppressed because it is too large
Load diff
Reference in a new issue