gpt4 book ai didi

css - Laravel 5.4 和 Elixir 错误

转载 作者:行者123 更新时间:2023-11-28 03:20:50 26 4
gpt4 key购买 nike

我想简单地将新的 css 标签添加到导入的 scss 文件中,例如:

@import "general/global" 

内容

body {
background-color: #999;
}

它使用 elixir(npm run dev 和 npm run watch;webpack)编译,但我在控制台“意外 token ”中收到错误。我检查了编译文件 app.css 和 app.js,我发现了这个:
enter image description here

或者
enter image description here

我尝试再次运行“npm install”或“npm update”,删除了 node_modules 文件夹等,但无济于事。有人有想法吗?

编辑:
我的 wepback.js

let mix = require('laravel-mix');
mix.browserSync('http://192.168.99.100/');

mix.js([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.js',
'resources/assets/js/app.js'
], 'public/js/app.js')
.sass('resources/assets/sass/app.scss', 'public/css/app.css');

使用:bootstrap 4 alpha6 on windows 10 pro, laravel 5.4 latest

最佳答案

这是一个 Docker/Virtualbox 错误。请参阅此链接:
https://forums.virtualbox.org/viewtopic.php?f=1&t=24905

现在是“发送文件关闭”;我的 vhost.conf 中的(使用 nginx)帮助了我。

关于css - Laravel 5.4 和 Elixir 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45226000/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com