.shopifyignore file not reflecting any changes

Nimra
New Member
3 0 1

I was working on my workflow of Shopify 2.0 using Shopify CLI and I am doing some file transformations using different buildtools.
I have my compiled and source code mixed but also wanted to make sure i could take leverage of the new Shopify CLI.
For that, I wanted to ignore any of the unnecessary folders that doesn't fit the directory format to be able to run the 'shopify theme serve' command. 

below is the content of my .shopifyignore file:

# OS generated files #
.DS_Store
.DS_Store?
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Enviroment files #
source
build_tools
node_modules
.config
.github
.vscode
.docs
src/public/*.json
package.json
.gitignore
gulpfile.js

# Other files #
/\.(txt|md|lock)$/

 and here is the errors I'm getting when running 'shopify theme serve'

Screenshot 2021-10-23 at 2.21.41 PM.png

Reply 1 (1)
zoltankundi
Shopify Partner
14 1 20

I had the same problem and it seems adding a `/` at the end of the path solved my issue.

Like instead of

build_tools
styles

have it like

build_tools/
styles/

 

I didn't find the specifications for the .shopifyignore file and at first I thought it uses the same syntax as .gitignore but it either still is a bit buggy or it's not the same syntax.