简体   繁体   English

app.js 文件在哪里? 这是什么意思? 在视图中

[英]Where is app.js file? What does it mean? in vue

在此处输入图像描述 在此处输入图像描述 在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

Hello, there is no app.js file in my website, but I keep getting this error and it affects the site.您好,我的网站上没有 app.js 文件,但我一直收到此错误并且它影响了网站。 Normally, Google Lighthouse gives information about the problem, but this time Google Lighthouse didn't give the any information.通常情况下,Google Lighthouse 会提供有关问题的信息,但这次 Google Lighthouse 没有提供任何信息。 What do you recommend?你有什么建议吗?

Thank you谢谢

app.js is the "bundle". app.js是“包”。 It is a concatenation of all your application's files into one.它是将所有应用程序文件串联在一起。

Try running:尝试运行:

npm run build

and inspect the files generated at the /dist folder.并检查/dist文件夹中生成的文件。

The files in the /dist folders are basically the output webpack produces when it builds your project. /dist文件夹中的文件基本上是 webpack 在构建项目时产生的输出。 app.js itself, as said, is a concatenation of all your application's files (those written by yourself and maybe some third-party that you imported), after some transformations performed by plugins and webpack itself. app.jsapp.js本身是所有应用程序文件(由您自己编写的文件,也可能是您导入的某些第​​三方文件)的串联,经过插件和 webpack 本身执行的一些转换。

const mysql = require ('mysql');
const connection = mysql.createConnection ({
  hôte: «localhost»,
  utilisateur:'utilisateur',
  mot de passe:'mot de passe',
  base de données:'nom de la base de données'
});
connection.connect ((err) => {
  if (err) throw err;
  console.log ('Connecté!');
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM