Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Add support for Meteor #1

Closed
arunoda opened this issue Aug 2, 2016 · 9 comments
Closed

Add support for Meteor #1

arunoda opened this issue Aug 2, 2016 · 9 comments

Comments

@arunoda
Copy link
Contributor

arunoda commented Aug 2, 2016

Detect Meteor projects and add essential configs.

@arunoda
Copy link
Contributor Author

arunoda commented Aug 3, 2016

Guys, I need to help to make some default configurations for Meteor.(only on client side) Do you know which babel plugins, webpack stuff we could use?

@zeroasterisk
Copy link

@arunoda thanks for this!

I'd also be interested in some simple templates for webpack for react-cdk projects, something to get up and running fast with bootstrap3, bootstrap4, material, etc.

@ffxsam
Copy link

ffxsam commented Aug 3, 2016

My boilerplate .babelrc for Meteor:

{
  "presets": [
    "es2015",
    "react",
    "stage-1"
  ]
}

I use stage-1 so I can use class properties.. which actually, I heard is in stage-2 now, though that doesn't seem to work for me, so it may not be published to the npm registry yet.

@arunoda
Copy link
Contributor Author

arunoda commented Aug 6, 2016

Add Meteor support

@ffxsam
Copy link

ffxsam commented Aug 6, 2016

On second thought, I also have plugins set:

{
  "plugins": ["babel-root-slash-import"]
}

@PolGuixe
Copy link

how to load CSS from Meteor Packages, e.g. Font Awesome?

@index01d
Copy link

index01d commented Oct 1, 2016

@PolGuixe ugly way, but you can import css directly from ../.meteor/local/build/programs/web.browser/merged-stylesheets.css

@ilan-schemoul
Copy link

I also taught of using .meteor/local/build/programs/web.browser/merged-stylesheets.css what do @arunoda thinks about that particular way of loading css ?

@ilan-schemoul
Copy link

ilan-schemoul commented Feb 26, 2017

Actually it doens't work because my css loads fonts.
My fonts are in /public/fonts, so in my css the url imported is /fonts (as we have to omit /public in Meteor) so when storybook tries to load merged-stylesheets.css I have this error (as it doesn't find fonts for above reasons) :

in ./~/css-loader?importLoaders=1!./~/postcss-loader!./.meteor/local/build/programs/web.browser/merged-stylesheets.css
Module not found: Error: Cannot resolve 'file' or 'directory' ./fonts/roboto/Roboto-Thin.woff2 in C:\Easy_16.1.1\eds-www\32-PHARMACIE_METEOR\.meteor\local\build\programs\web.browser
 @ ./~/css-loader?importLoaders=1!./~/postcss-loader!./.meteor/local/build/programs/web.browser/merged-stylesheets.css 6:73027-73070 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

6 participants