Skip to content

Commit

Permalink
npm updates for bugfixes and webpack 5
Browse files Browse the repository at this point in the history
remove webpack-dev-server
  • Loading branch information
chappjc committed Jul 7, 2021
1 parent 964fcc0 commit 1298264
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 32 deletions.
44 changes: 21 additions & 23 deletions client/webserver/site/package.json
Expand Up @@ -6,7 +6,6 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "webpack --watch --config webpack/dev.js",
"start": "webpack-cli serve --open --config webpack/dev.js",
"analyze": "webpack --config webpack/analyze.js",
"build": "webpack --config webpack/prod.js --progress --color",
"lint": "./node_modules/.bin/eslint src --ext .js"
Expand All @@ -15,31 +14,30 @@
"author": "The Decred developers",
"license": "Blue Oak 1.0.0",
"devDependencies": {
"@babel/core": "^7.13.10",
"@babel/eslint-parser": "^7.13.10",
"@babel/core": "^7.14.6",
"@babel/eslint-parser": "^7.14.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.13.10",
"@babel/preset-env": "^7.14.7",
"babel-loader": "^8.2.2",
"bootstrap": "^4.6.0",
"clean-webpack-plugin": "^3.0.0",
"css-loader": "^5.1.2",
"css-minimizer-webpack-plugin": "^1.2.0",
"eslint": "^7.21.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"clean-webpack-plugin": "^4.0.0-alpha.0",
"css-loader": "^5.2.6",
"css-minimizer-webpack-plugin": "^3.0.2",
"eslint": "^7.30.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-webpack-plugin": "^2.5.2",
"mini-css-extract-plugin": "^1.3.9",
"sass": "^1.32.8",
"sass-loader": "^11.0.1",
"stylelint": "^13.12.0",
"stylelint-config-standard": "^21.0.0",
"stylelint-webpack-plugin": "^2.1.1",
"webpack": "^5.24.4",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-cli": "^4.5.0",
"webpack-dev-server": "^4.0.0-beta.0",
"webpack-merge": "^5.7.3"
"eslint-plugin-promise": "^5.1.0",
"eslint-webpack-plugin": "^2.5.4",
"mini-css-extract-plugin": "^2.1.0",
"sass": "^1.35.1",
"sass-loader": "^12.1.0",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0",
"stylelint-webpack-plugin": "^2.2.2",
"webpack": "^5.43.0",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^4.7.2",
"webpack-merge": "^5.8.0"
}
}
6 changes: 3 additions & 3 deletions client/webserver/site/src/html/bodybuilder.tmpl
Expand Up @@ -4,11 +4,11 @@
<head data-turbolinks-eval="false">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 2 meta tags *must* come first in the head; any other head content must come *after* these tags -->
{{- /* The above 2 meta tags *must* come first in the head; any other head content must come *after* these tags */ -}}
<link rel="icon" href="/img/favicon.png?v=MQq4VTue">
<meta name="description" content="Decred DEX Client Web Portal">
<title>{{.Title}}</title>
<link href="/css/style.css?v=2rOIoK" rel="stylesheet">
<link href="/css/style.css?v=q8u8rzX4" rel="stylesheet">
</head>
<body {{if .UserInfo.DarkMode}} class="dark"{{end}}>
<div class="popup-notes" id="popupNotes">
Expand Down Expand Up @@ -85,7 +85,7 @@
{{end}}

{{define "bottom"}}
<script src="/js/entry.js?v=1iRXg"></script>
<script src="/js/entry.js?v=q8u8rzX4"></script>
</body>
</html>
{{end}}
7 changes: 1 addition & 6 deletions client/webserver/site/webpack/dev.js
Expand Up @@ -8,10 +8,5 @@ module.exports = merge(common, {
plugins: [new ESLintPlugin({
formatter: 'stylish'
})],
devtool: 'inline-source-map',
devServer: {
static: path.resolve(__dirname, 'public/index.js'),
port: 54321,
watch: true
}
devtool: 'inline-source-map'
})

0 comments on commit 1298264

Please sign in to comment.