From 627b0b580c4de9d7aedff377c7e90b8125161ba4 Mon Sep 17 00:00:00 2001 From: Dan Zera Date: Mon, 18 May 2020 19:49:56 -0700 Subject: [PATCH] update encore setup docs to reflect current results of Encore installation --- frontend/encore/simple-example.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/encore/simple-example.rst b/frontend/encore/simple-example.rst index 5fd9202c9b6..aa387e1e337 100644 --- a/frontend/encore/simple-example.rst +++ b/frontend/encore/simple-example.rst @@ -9,15 +9,15 @@ CSS and one JS file, organized into an ``assets/`` directory: With Encore, think of your ``app.js`` file like a standalone JavaScript application: it will *require* all of the dependencies it needs (e.g. jQuery or React), -*including* any CSS. Your ``app.js`` file is already doing this with a special -``require()`` function: +*including* any CSS. Your ``app.js`` file is already doing this with a JavaScript +``import`` statement: .. code-block:: javascript // assets/js/app.js // ... - require('../css/app.css'); + import '../css/app.css'; // var $ = require('jquery');