I have tried to install Semantic UI via the official package:
meteor add semantic:ui flemay:less-autoprefixer
The custom.semantic.json is created and filled, but the semantic code does not work in the browser.
It works if I install another package, but it is deprecated so I would rather go for the official one.
I had the same problem. Here is what I did to correct:
The documentation mentions creating custom.semantic.json in the client/lib/semantic-ui folder. You must do this - create an empty file with this name somewhere in your structure (if you havenāt yet).
Run your project (type āmeteorā in your projectās folder).
You will notice a new file is generated in the same folder you created the file mentioned in step 1. This file is called .custom.semantic.json (same name with period in beginning). STOP your meteor application so it isnāt running anymore (Control-C twice).
DELETE the file .custom.semantic.json (the one with the period in front). DO NOT delete the one you created without the period in front.
Run your project again. You will notice not only did the file with the period in front get created again, but all the files and folders needed for semantic-ui will also show up in the same folder and you should see the new look in your applicationās screen.
To gain access to the js functionality in our other packages, we do api.use('custom:theme');
With this method we needed to copy the asset files (fonts etc) into the app public/assets/ folders so the app could find them.
This is one way of building the CSS, and using it with your packages.
There is currently an issue open here which talks about using the less files and having it compile within your application/package structure. I havenāt fully explored that as a possibility, as it would be great to be able to change the .less files for a custom theme without having to compile it externally, but at the same time our needs have the generated css used within external static sites as well.
Hi guys, my apologies but this is the post most related to my problem. I am using iron-cli in my application and decided to add semantic-ui. I followed all the integration procedures listed in http://semantic-ui.com/introduction/integrations.html#install-via-atmosphere but used the iron cli instead of meteorās. after adding the postcss package in my-app\app\package.json and then doing meteor install npm as the instruction mentioned, I get an error that it is missing package.json and it couldnāt recognize the myapp directory. As I realized, because I created the app using iron, the normal npm install command no longer works. How do I run resolve this?
when trying to run the app anyway, I get this error.
While minifying app stylesheet:
error: Canāt load npm module āautoprefixerā from
packages/minifier-postcss_plugin.js. Check your Npm.depends().