From 5fe4ccf3b1bb577488395cf59cc00448c586fa66 Mon Sep 17 00:00:00 2001 From: Antoine Makdessi Date: Tue, 19 Nov 2019 14:39:45 +0100 Subject: [PATCH] Update app.js --- symfony/webpack-encore-bundle/1.0/assets/js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/symfony/webpack-encore-bundle/1.0/assets/js/app.js b/symfony/webpack-encore-bundle/1.0/assets/js/app.js index 0648e871..1748c149 100644 --- a/symfony/webpack-encore-bundle/1.0/assets/js/app.js +++ b/symfony/webpack-encore-bundle/1.0/assets/js/app.js @@ -5,10 +5,10 @@ * (and its CSS file) in your base layout (base.html.twig). */ -// any CSS you require will output into a single css file (app.css in this case) -require('../css/app.css'); +// any CSS you import will output into a single css file (app.css in this case) +import '../css/app.css'; -// Need jQuery? Install it with "yarn add jquery", then uncomment to require it. -// const $ = require('jquery'); +// Need jQuery? Install it with "yarn add jquery", then uncomment to import it. +// import $ from 'jquery'; console.log('Hello Webpack Encore! Edit me in assets/js/app.js');