无法将js文件链接到我的pug浏览器控制台
The script from “http://localhost:3000/script.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
2 signin
Loading failed for the <script> with source “http://localhost:3000/script.js”. signin:1:1
我尝试过用脚本标记来完成这个任务,但是我的js代码可能有一些错误,除非
嗨,伙计们,我是斯维特的新手,我有个问题。
我用svelte制作了一个小应用程序,它在dev中运行得很顺利。
但是,当我为生产运行npm run build时,公用文件夹中的输出是3项bundle.css、bundle.js和bundle.js.map,没有index.html,任何人都可以帮助我,因为看起来公用文件夹中应该包含index.html。
我正在写一个小网站。我使用托管站点,并使用和。app.js文件的顶部如下所示:
var express = require('express');
var _ = require('underscore');
var jquery = require('cloud/libs/jquery-2.1.1.min.js');
var bootstrap = require('cloud/libs/bootstrap.min.js');
当我去部署(parse deploy)应用程序时,它返回时会出现以下错误:
Uploading sou