Semantic-UI-Meteor icon indicating copy to clipboard operation
Semantic-UI-Meteor copied to clipboard

It does not work as a dependency of a package

Open mitar opened this issue 9 years ago • 1 comments

A package with the following:

Package.onUse(function(api) {
  api.versionsFrom('1.2.1');

  api.use([
    'semantic:ui',
    'flemay:less-autoprefixer',
    'jquery'
  ], ['client']);

  api.addFiles([
    'semantic/custom.semantic.json'
  ], ['client'])
});

Does not generate files inside the package. In fact, it generates a file semantic/custom.semantic.json in the root of the app (but package is inside packages).

mitar avatar May 11 '16 10:05 mitar

There are some recommendations out there to move Semantic-UI into its own local package to keep build times down.

Move as much of your code as possible into many small Meteor packages. Packages rebuild somewhat separately from the main application and other packages, so you can get much faster reloads by breaking up your code. If you are using a large library (e.g. Semantic UI), make sure it is in its own package!

But not sure if this would work given the issue noted above by @mitar (and is it still a problem on 1.4.x?)

myktra avatar Sep 01 '16 14:09 myktra