Remove unused code

pull/4020/head^2
Julio 4 years ago
parent ec2210d5e5
commit 856e57fa49
  1. 8
      assets/README.md
  2. 3
      assets/js/app.js

@ -22,13 +22,7 @@ To upgrade packages:
Webpack takes CSS, JS and other files and generates tidy single-files to attach to your web package.
The behaviour of how packages will be processed is describe here: "webpack.config.js".
If the public/js/fos_js_routes.json file does not exist (or if you're in doubt about the version of your PHP libs), run:
```
composer update
bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
```
The behaviour of how packages will be processed is described here: "webpack.config.js".
Then, to create the public/build contents, run one of the following commands:
To compile assets just once:

@ -1,8 +1,5 @@
/* For licensing terms, see /license.txt */
// Load symfony routes in order to use it in a js
//const routes = require('../../public/js/fos_js_routes.json');
//import Routing from '../../vendor/friendsofsymfony/jsrouting-bundle/Resources/public/js/router.min.js';
const $ = require('jquery');
window.jQuery = $;

Loading…
Cancel
Save