每当我这样做时npm run watch,第一次编译都可以正常工作-但是经过几次编译后,我最终会收到此错误:
95% 发出未命名的兼容插件错误:未知:未知错误,打开“D:\Laragon\www\erproj\public\js\app.js”
const mix = require('laravel-mix')
require('laravel-vue-lang/mix')
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/js/app.js', 'public/js')
mix.webpackConfig(
{
module:
{
rules:
[
{
enforce: 'pre',
exclude: /node_modules/,
loader: 'eslint-loader',
test: /\.(js|vue)?$/
},
] …Run Code Online (Sandbox Code Playgroud)