Skip to content

Commit acc430b

Browse files
committed
fixing typos and upgrade webpack
upgrade webpack to version 4.
1 parent ed4d0a8 commit acc430b

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Using Bootstrap in VueJS application is easy with BootstrapVue:
133133
- Add the Bootstrap components (e.g. I added a badge at Dashboard.vue template.)
134134

135135
### Prevent XSS Attack:
136-
During the jounary in solveing the asp-prerendering v3.0.0+ dependency issue, I found an article talking about Cross-site scripting attack in JavaScript applications: *[The Most Common XSS Vulnerability in React.js Applications](https://medium.com/node-security/the-most-common-xss-vulnerability-in-react-js-applications-2bdffbcc1fa0)* And turns out rednerOnServer.js also has such vulnerability.
136+
During the journey in solveing the asp-prerendering v3.0.0+ dependency issue, I found an article talking about Cross-site scripting attack in JavaScript applications: *[The Most Common XSS Vulnerability in React.js Applications](https://medium.com/node-security/the-most-common-xss-vulnerability-in-react-js-applications-2bdffbcc1fa0)* And turns out rednerOnServer.js also has such vulnerability.
137137

138138
module.exports = prerendering.createServerRenderer(function (params) {
139139
return new Promise(

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
"babel-loader": "^7.1.4",
2828
"babel-preset-es2015": "^6.24.1",
2929
"babel-preset-stage-2": "^6.24.1",
30-
"vue-loader": "^14.2.1",
31-
"vue-template-compiler": "^2.5.13",
3230
"css-loader": "^0.28.10",
3331
"json-loader": "^0.5.7",
3432
"style-loader": "^0.20.2",
35-
"webpack": "^3.8.1",
36-
"webpack-hot-middleware": "^2.21.0",
37-
"webpack-merge": "^4.1.1"
33+
"vue-loader": "^14.2.1",
34+
"vue-template-compiler": "^2.5.13",
35+
"webpack": "^4.1.1",
36+
"webpack-cli": "^2.0.11",
37+
"webpack-hot-middleware": "^2.21.2",
38+
"webpack-merge": "^4.1.2"
3839
}
3940
}

webpack.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const merge = require('webpack-merge')
55

66
module.exports = (env) => {
77
const sharedConfig = () => ({
8+
mode: "development",
89
stats: { modules: false },
910
resolve: { extensions: ['.js', '.vue'] },
1011
output: {
@@ -44,14 +45,6 @@ module.exports = (env) => {
4445
output: {
4546
libraryTarget: 'commonjs2',
4647
path: path.join(__dirname, 'wwwroot/dist')
47-
},
48-
module: {
49-
rules: [
50-
{
51-
test: /\.json?$/,
52-
loader: 'json-loader'
53-
}
54-
]
5548
}
5649
})
5750

0 commit comments

Comments
 (0)