Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Importing ES6 classes inside styles folder

$
0
0

@vasconita wrote:

I have some ember apps which share some styles. For the moment there are just two files I want to share between those ember apps, one CSS for static colors and one JS with a class with static variables for colors that may change in runtime.

For this purpose I'm using subtrees to share a folder named "common" inside styles folder, where I have two mentioned files.

The problem is that I can't import any JS file inside styles folder from elsewhere outside styles folder. I imagine this happens because ember-cli build process exclude styles folder.

I've been looking for config options to change this behaviour but I didn't found it.

Does anyone know if there's a workaround to import ES6 classes from JS files inside styles folder?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles