Speed Optimization Module Setup

Comments

4 comments

  • Avatar
    orolfes

    Hello,
    if you have NODEJS and REQUIRE.JS installed, then just see if you have the correct path to r.js and then fix the path in the command: node_modules/requirejs/bin/r.js.

    I have forgotten one important thing - before running the optimization command, you must not have minimized js files (minify js files set "NO").

    0
    Comment actions Permalink
  • Avatar
    Pan 1234

    i try to activate it and i run the command 

    node_modules/requirejs/bin/r.js -o pub/static/advancedbundling_build.js baseUrl=pub/static/frontend/Pearl/weltpixel_custom/el_GR_tmp dir=pub/static/frontend/Pearl/weltpixel_custom/el_GR

    the result is

    Error: Error: ERROR: module path does not exist: public_html/pub/static/frontend/Pearl/weltpixel_custom/el_GR_tmp/requirejs/require.js for module named: requirejs/require. Path is relative to: /public_html
    at /public_html/node_modules/requirejs/bin/r.js:28447:35

    any idea?

    ps. i have put the js file to /public_html/app/design/frontend/Pearl/weltpixel/WeltPixel_SpeedOptimization/lib/advancedbundling_build.js

    the directory WeltPixel_SpeedOptimization/lib/ didn't exist. i create it

    0
    Comment actions Permalink
  • Avatar
    Pan 1234

    disable minification and i get 

    Tracing dependencies for: mage/bootstrap
    Error: Error: ENOENT: no such file or directory, open '/public_html/pub/static/frontend/Pearl/weltpixel_custom/el_GR/Magento_Theme/js/responsive.js'
    at Error (native)

    0
    Comment actions Permalink
  • Avatar
    Esequiel Palacios

    Hi , I have this error  :

    Error: Error: ENOENT: no such file or directory, open '/public_html/pub/static/frontend/Pearl/weltpixel_custom/el_GR/Magento_Theme/js/responsive.js'
    at Error (native)

     

    there is not that file..

     

    0
    Comment actions Permalink

Please sign in to leave a comment.