17
Come importare jquery usando la sintassi ES6?
Sto scrivendo una nuova app utilizzando la ES6sintassi (JavaScript) tramite babeltranspiler e preset-es2015plugin, oltre che semantic-uiper lo stile. index.js import * as stylesheet from '../assets/styles/app.scss'; import * as jquery2 from '../dist/scripts/jquery.min'; import * as jquery3 from '../node_modules/jquery/dist/jquery.min'; console.log($('my-app')); index.html <!DOCTYPE html> <html lang="fr"> <head> <body> <script src="dist/app.js"></script> </body> </html> Struttura …