@shopify/slate-analytics
Advanced tools
Changelog
v1.0.0-beta.6 (2018-08-01)
slate-tools
slate-tag-webpack-plugin
Changelog
v1.0.0-beta.2 (2018-05-25)
slate-analytics
, slate-env
slate-tools
Changelog
v1.0.0-beta.1 (2018-05-03)
html-webpack-liquid-asset-tags-plugin
slate-cssvar-loader
slate-tools
slate-analytics
slate-cssvar-loader
slate-tools
Changelog
v1.0.0-alpha.29 (2018-04-27)
create-slate-theme
slate-liquid-asset-loader
, slate-tools
slate-cssvar-loader
Changelog
v1.0.0-alpha.28 (2018-04-18)
concat-style-loader
slate-tools
slate-tools
Changelog
v1.0.0-alpha.27 (2018-04-17)
Huge performance improvements for Themes on it's way with the introduction of Webpack 4 and its automatic bundle splitting. This allows Layouts and Templates to have their own independent JS and CSS bundles that are only loaded on the appropriate page(s). Say goodbye to JS and CSS bloat!
You must now include the following in the <head>
of any layout file you wish to have JS and CSS. For example, this is what you would put inside the <head>
of your layout/theme.liquid
file:
{% include 'script-tags', layout: 'theme' %}
{% include 'style-tags' %}
These snippets are generated automatically by Slate Tools at build. Their contents include <script>
and <link>
tags for each JS and CSS bundles.
You now must also have a src/assets/scripts/layout
folder and a src/assets/scripts/templates
. Any file contained in these folders which have a name the same as their Liquid counterpart is considered an entrypoint. For example, if I create a src/assets/scripts/templates/index.js
file, it's contents will only be downloaded and run when a user visits the Index page.
concat-style-loader
, slate-tools
slate-sync
, slate-tools
create-slate-theme
, html-webpack-liquid-asset-tags-plugin
, slate-analytics
, slate-sync
, slate-tag-webpack-plugin
, slate-tools
slate-sync
, slate-tools
slate-babel
, slate-common-excludes
, slate-tools