gowravshekar / font-awesome-webpack

font-awesome package for webpack
MIT License
192 stars 49 forks source link

Can't resolve './font-awesome-styles' #21

Closed boyarskiy closed 8 years ago

boyarskiy commented 8 years ago

Error: Can't resolve './font-awesome-styles' in '/node_modules/font-awesome-webpack' Webpack version: 2.1.0-beta.7

mclxly commented 8 years ago

same boat here, waiting for solution

mkazlauskas commented 8 years ago

Same here. It does work when specifying custom configuration though.

Ugarz commented 8 years ago

Hi, from where do you import this file ? have you tried to change your target from ./font-awesome-styles to ./font-awesome-styles.loader.js ?

mkazlauskas commented 8 years ago

require('font-awesome-webpack');

Ugarz commented 8 years ago

Yep should be something like this. According the readme :

The require statement should be present in your application code(Entry file or any other file required in entry file) and not in webpack.config.js.

mkazlauskas commented 8 years ago

@Ugarz it doesn't work. I'm using webpack 2.1-beta, it could be the reason. It works with custom js and less config files though.

Ugarz commented 8 years ago

Oh sorry reading too fast. Have you checked if this version production-ready yet ?

mkazlauskas commented 8 years ago

@Ugarz I don't really understand your question. If you asked about webpack version then it depends on what you consider 'production-ready'. For me it is.

gowravshekar commented 8 years ago

https://github.com/gowravshekar/font-awesome-webpack/issues/20

andrewmclagan commented 8 years ago

YEah also on webpack 2 and not working

sean-killeen commented 7 years ago

👍