Skip to content

Commit c0e1a2b

Browse files
committed
Upgrade laravel mix to ver 6
1 parent 9cd9067 commit c0e1a2b

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

dist/js/field.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/mix-manifest.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
},
66
"scripts": {
77
"dev": "npm run development",
8-
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
9-
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
10-
"watch-poll": "npm run watch -- --watch-poll",
11-
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
8+
"development": "mix",
9+
"watch": "mix watch",
10+
"hot": "mix watch --hot",
1211
"prod": "npm run production",
13-
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
12+
"production": "mix --production"
1413
},
1514
"devDependencies": {
1615
"cross-env": "^5.0.0",
17-
"laravel-mix": "^1.0",
18-
"laravel-nova": "^1.0"
16+
"laravel-mix": "^6.0.41",
17+
"laravel-nova": "^1.0",
18+
"vue-loader": "^15.9.8",
19+
"vue-template-compiler": "^2.6.14"
1920
},
2021
"dependencies": {
2122
"vue": "^2.5.0"

webpack.mix.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ let mix = require('laravel-mix')
33
mix
44
.setPublicPath('dist')
55
.js('resources/js/field.js', 'js')
6+
.vue();
67

78
if (mix.inProduction()) {
89
mix.version();

0 commit comments

Comments
 (0)