Combine and Minify Necessary Files With Webpack

0 replies · opened Mar 24, 2018

BbseymourMar 24, 2018

Hello, thank you for the robust theme!

We are building a site where web page load time is crucial. The Canvas theme is a great toolkit, but we need to pick it apart and include only what is necessary in our build process. Several JS files are heavy and appear to include many vendor libraries that we will not need.

How do you recommend that we only pull in what we need?

In the html directory of the downloaded theme, there are many example pages … if we view the source code of each page we can see what is required. However, certain pages such as, side-panel.html bring in plugins.js which is a heavy file (~600kb). I found the http://support.semicolonweb.com/js-package-generator which may help and I read the Optimization Tips in the docs.

Thank you for any advice!

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard