简体   繁体   中英

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. Normally, Google Lighthouse gives information about the problem, but this time Google Lighthouse didn't give the any information. What do you recommend?

Thank you

app.js is the "bundle". 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.

The files in the /dist folders are basically the output webpack produces when it builds your project. 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.

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é!');
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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