Skip to content

v0.3.0

Compare
Choose a tag to compare
@samselikoff samselikoff released this 04 Apr 15:48
· 257 commits to master since this release

We moved the generated /tailwind directory from /app/styles/tailwind to /app/tailwind. We also moved some files within the /tailwind directory - for example, the style files now live in tailwind/config. This is a breaking change. You should run the generator to see how the layout has changed and make sure your existing settings make it into the right files.

We also added better support for addons, but this comes with some new required configuration. We hope to make this easier in the future.

For now, you'll need to set 'ember-cli-tailwind'['buildTarget'] to either app, dummy or `addon.

Use in apps

// ember-cli-build.js
module.exports = function(defaults) {
  let app = new EmberAddon(defaults, {
    // Add options here

    'ember-cli-tailwind': {
      buildTarget: 'app'
    }
  });
}

Use in addons

You can use Tailwind in your /addon code, or to style your dummy app.

To style your addon code, add this to index.js:

// index.js
module.exports = {
  name: 'tailwind-dummy-app-test',

  options: {
    'ember-cli-tailwind': {
      buildTarget: 'addon'
    }
  }
};

To style your dummy app, add this to ember-cli-build.js:

// ember-cli-build.js
module.exports = function(defaults) {
  let app = new EmberAddon(defaults, {
    // Add options here

    'ember-cli-tailwind': {
      buildTarget: 'dummy'
    }
  });
}