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.