Note that there are some explanatory texts on larger screens.

plurals
  1. POCompass: Importing files from another project directory
    primarykey
    data
    text
    <p>I have two projects. One is for the public facing side of our site and the other is for the admin side. I have a page that is the same on both pages.</p> <p>My directory structure is like so:</p> <pre><code>/public config.rb /images /upgrade /sprites /sass /upgrade index.scss /stylesheets /cms config.rb /sass /upgrade index.scss /stylesheets </code></pre> <p><code>public/sass/upgrade/index.scss</code> is where all of the styles live. <code>cms/sass/upgrade/index.scss</code> imports those styles, like so:</p> <pre><code>@import '../../../public/sass/upgrade' </code></pre> <p>These works fine in that I can generate css into <code>cms/stylesheets/upgrade/index.css</code>. It is with the sprite generation that I'm running into a problem. Inside of <code>public/sass/upgrade/index.scss</code>, the import for the sprite pngs looks like this</p> <pre><code>@import 'upgrade/sprites/*.png'; </code></pre> <p>Using LiveReload, I get the follow error:</p> <pre><code>Cannot determine the opposite position of: to Cannot determine the opposite position of: to Cannot determine the opposite position of: to No files were found in the load path matching "setup/packages/*.png". Your current load paths are: ./images </code></pre> <p>That makes sense because when I compile my <code>cms/sass/upgrade/index.scss</code>, its looking for images in <code>cms/images/upgrade/sprites</code> where there are none.</p> <p>I'm curious to see if anyone has ever run into this issue and has any solutions how to share assets across projects. I thought that setting <code>relative_assets = true</code> would help but it hasn't. Maybe I'm using it wrong. I don't know.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload