Building a compressed version of js files - require causes error #11
-
In a project, we are optimizing the build process of the final JS assets, by taking all the libraries (Added to the Neos Site package as files) and will create a optimized build file. Today each file is included with a individual This means, that a folder named
As I run
and a detailed description like this
Can this be completed with a pipeline setting about relative paths and/or resolving of required modules? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Do you use the module version of jquery? I think it would be better if you would import the files from |
Beta Was this translation helpful? Give feedback.
Do you use the module version of jquery? I think it would be better if you would import the files from
node_modules
, so that the bundler can pick the correct version. It looks to me if you are using the AMD version, and if you are looking into the readme https://www.npmjs.com/package/jquery, you will see that it is recommended to import jQuery like that:import $ from "jquery";