Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.

Commit 933ceae

Browse files
authored
upgrade to webpack 4 (#21)
1 parent 590aa7a commit 933ceae

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

build/webpack.base.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const utils = require('./utils')
44
const config = require('../config')
55
const vueLoaderConfig = require('./vue-loader.conf')
66

7-
function resolve (dir) {
7+
function resolve(dir) {
88
return path.join(__dirname, '..', dir)
99
}
1010

@@ -32,7 +32,7 @@ module.exports = {
3232
: config.dev.assetsPublicPath
3333
},
3434
resolve: {
35-
extensions: ['.js', '.vue', '.json'],
35+
extensions: ['.mjs', '.js', '.vue', '.json'],
3636
alias: {
3737
'vue$': 'vue/dist/vue.esm.js',
3838
'@': resolve('src'),

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
"chalk": "^2.3.2",
4040
"copy-webpack-plugin": "^4.5.1",
4141
"css-loader": "^0.28.10",
42-
"eslint": "^3.19.0",
42+
"eslint": "^4.18.2",
4343
"eslint-friendly-formatter": "^3.0.0",
44-
"eslint-loader": "^1.7.1",
44+
"eslint-loader": "^4.0.2",
4545
"eslint-plugin-html": "^3.0.0",
4646
"eventsource-polyfill": "^0.9.6",
4747
"extract-text-webpack-plugin": "^3.0.0",
4848
"file-loader": "^1.1.11",
4949
"friendly-errors-webpack-plugin": "^1.6.1",
50-
"html-webpack-plugin": "^2.30.1",
50+
"html-webpack-plugin": "^4.3.0",
5151
"node-notifier": "^5.2.1",
5252
"optimize-css-assets-webpack-plugin": "^3.2.0",
5353
"ora": "^1.4.0",
@@ -59,12 +59,13 @@
5959
"shelljs": "^0.7.6",
6060
"uglifyjs-webpack-plugin": "^1.2.3",
6161
"url-loader": "^0.5.8",
62-
"vue-loader": "^13.7.1",
62+
"vue-loader": "^14.2.2",
6363
"vue-style-loader": "^3.1.2",
6464
"vue-template-compiler": "^2.5.16",
65-
"webpack": "^3.11.0",
66-
"webpack-bundle-analyzer": "^2.11.1",
67-
"webpack-dev-server": "^2.11.2",
65+
"webpack": "^4.43.0",
66+
"webpack-bundle-analyzer": "^3.8.0",
67+
"webpack-cli": "^3.3.11",
68+
"webpack-dev-server": "^3.11.0",
6869
"webpack-merge": "^4.1.2"
6970
},
7071
"engines": {

0 commit comments

Comments
 (0)