Releases: wesselvanree/shopify-theme-tailwind
Releases · wesselvanree/shopify-theme-tailwind
v2.2.1
What's Changed
- Update config files by @wesselvanree in #15
- Add custom Tailwind CSS options by @wesselvanree in #16
- Update
shopify
script to Shopify CLI v3 by @wesselvanree in #17 - Update dependencies by @wesselvanree in #18
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
- Migrate to Vite (replaces Webpack and PostCSS CLI)
- Fix stale chunks after multiple deploys
- Add support for multiple PostCSS entries in the
styles
directory - Reduce the number of dependencies
- Update and simplify npm scripts
Migrate an existing project to Vite
Update your package.json and remove .babelrc
and webpack.config.js
and copy vite.config.ts
. The folder structure has not changed, but you have to import src/index.css
in src/entries/index.ts
, and CSS files will be built to shopify/assets/[name].min.css
so make sure you change your *.liquid
files accordingly.
To make things easier, I wrote a bash script that does the migration for you:
- cd into your project root
- Make sure there does not exist a
../temp-sttw/
directory. If it exists, rename it or remove it. - Run the following commands from your project root:
git checkout -b migrate-v2.2.0
rm -rf .babelrc webpack.config.js helpers/ scripts/ .vscode/ postcss.config.js
git clone [email protected]:wesselvanree/shopify-theme-tailwind.git ../temp-sttw
git --git-dir ../temp-sttw/.git checkout 4e81d96
mv ../temp-sttw/vite.config.ts ../temp-sttw/*.json ../temp-sttw/scripts ../temp-sttw/.gitignore* ../temp-sttw/.vscode/ ../temp-sttw/.postcss.config.cjs ./
npm install
rm -rf ../temp-sttw/
- Install your custom dependencies in
package.json
andpostcss.config.cjs
- Import
src/index.css
insrc/entries/index.ts
- Vite should be able to run now! You could take a look at other config changes like the Tailwind config and copy those changes.
Full Changelog: v2.1.3...v2.2.0
v2.1.3
v2.1.2
What's Changed
- Update installation flow by @wesselvanree in #11
- Simplify webpack.config.js by @wesselvanree in #12
Full Changelog: v2.1.1...v2.1.2
v2.1.1
v2.1.0
What's Changed
- Refactor
webpack.config.js
- Add support for dynamic imports
- Resolve bundle naming errors when using deeply nested subfolders in the
entries
folder
Full Changelog: v2.0.3...v2.1.0
v2.0.3
v2.0.2
Changed
- Only purge
.liquid
,.tsx
,.ts
,.jsx
,.js
files with tailwindcss.
Full Changelog: v2.0.1...v2.0.2
v2.0.1
v2.0.0
Added
- Typescript support
- Move all Shopify related files and folders to
shopify
folder - Github action to check for build errors on Pull Request
Changed
- Github actions to support new folder structure
- Scripts in
package.json
- Update Dawn theme from Shopify/dawn repo
Fixed
- Github Action now builds Webpack in production mode