ReactJSResources / react-webpack-babel

Simple React Webpack Babel Starter Kit
MIT License
1.28k stars 431 forks source link

Missing loader #147

Closed TeodorKolev closed 8 years ago

TeodorKolev commented 8 years ago

Hi, I have install npm install semantic-ui --save and I got "You may need an appropriate loader to handle this file type" for font files and png file? Is there some remedy for this?

alicoding commented 8 years ago

I just did npm install semantic-ui --save and able to run npm start after the npm installed?

alicoding commented 8 years ago

Do you have STR for this?

TeodorKolev commented 8 years ago

What is that STR?

alicoding commented 8 years ago

Sorry its a step to reproduce.

TeodorKolev commented 8 years ago

npm install semantic-ui --save import 'semantic-ui/dist/semantic.min.css'; import 'semantic-ui/dist/semantic.min.js'; in app.jsx and npm start

alicoding commented 8 years ago

You'll probably need to add loader for .js file

    {
        test: /\.js?$/,
        exclude: /(node_modules|bower_components|public)/,
        loaders: ['react-hot']
    },

Or edit the regex for jsx to also look for js

TeodorKolev commented 8 years ago

Still same errors in .eot .woff .svg .woff2 .ttf and .png Those are semantic fonts and png for flags

TeodorKolev commented 8 years ago

This repo has problem loading fonts

alicoding commented 8 years ago

@TeodorKolev have you figured out the problem? because its working fine for me here.... try to nuke your npm_modules and try again.

TeodorKolev commented 8 years ago

Yes, after nuke node_nodules, problem is fixed

alicoding commented 8 years ago

Awesome!