1
我對gulpfile.js
進行了一些更改。然後,我收到了以下語法錯誤在我的終端執行gulp
命令後:Elixir Laravel SyntaxError:意外的代幣
'version' errored after 657 μs
SyntaxError: Unexpected token }
at Object.parse (native)
at VersionTask.deleteManifestFiles (/var/www/html/work/node_modules/laravel-elixir/dist/tasks/VersionTask.js:114:29)
at VersionTask.gulpTask (/var/www/html/work/node_modules/laravel-elixir/dist/tasks/VersionTask.js:72:18)
at VersionTask.run (/var/www/html/work/node_modules/laravel-elixir/dist/tasks/Task.js:139:31)
at /var/www/html/work/node_modules/laravel-elixir/dist/tasks/GulpBuilder.js:60:37
at Array.forEach (native)
at Gulp.<anonymous> (/var/www/html/work/node_modules/laravel-elixir/dist/tasks/GulpBuilder.js:59:54)
at module.exports (/var/www/html/work/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/var/www/html/work/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/var/www/html/work/node_modules/orchestrator/index.js:214:10)
展望我public/build/css directory
我發現我所有的CSS版本是不正確的。 這怎麼會發生?我應該如何解決它?
gulpfile.js
const elixir = require('laravel-elixir');
require('laravel-elixir-vue');
elixir(mix => {
// for the application, after login
mix.sass(['styles.scss','imports.scss'])
.version(['css/styles.css','css/imports.css']);
});