Upgrade to Laravel Mix 6
This commit is contained in:
21
package.json
21
package.json
@@ -1,7 +1,18 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"scripts": {
|
||||||
"gulp": "^3.8.8",
|
"dev": "npm run development",
|
||||||
"laravel-elixir": "*"
|
"development": "mix",
|
||||||
}
|
"watch": "mix watch",
|
||||||
|
"watch-poll": "mix watch -- --watch-options-poll=1000",
|
||||||
|
"hot": "mix watch --hot",
|
||||||
|
"prod": "npm run production",
|
||||||
|
"production": "mix --production"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"axios": "^0.21",
|
||||||
|
"laravel-mix": "^6.0.6",
|
||||||
|
"lodash": "^4.17.19",
|
||||||
|
"postcss": "^8.1.14"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
17
webpack.mix.js
vendored
Normal file
17
webpack.mix.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
const mix = require('laravel-mix');
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Mix Asset Management
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Mix provides a clean, fluent API for defining some Webpack build steps
|
||||||
|
| for your Laravel applications. By default, we are compiling the CSS
|
||||||
|
| file for the application as well as bundling up all the JS files.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
mix.js('resources/js/app.js', 'public/js')
|
||||||
|
.postCss('resources/css/app.css', 'public/css', [
|
||||||
|
//
|
||||||
|
]);
|
Reference in New Issue
Block a user