Skip to content

Octoicons not loaded #4

@alexbeletsky

Description

@alexbeletsky

I installed the library and configured webpack according to documentation. But if I try to use the icon, what I see is,

screenshot 2016-10-12 16 23 44

The code,

        <td>
          <Octicon name="triangle-down" />
          <Octicon name="triangle-up" />
        </td>

Webpack.js

  module: {
    loaders: [ {
      test: /\.js$/,
      loaders: [ 'babel' ],
      exclude: /node_modules/
    }, {
      test: /\.(css|scss)$/,
      loader: 'style!css?sourceMap!sass?sourceMap'
    }, {
      test: /\.(png|jpg|gif)$/,
      loader: 'file-loader?name=images/[name].[ext]'
    }, {
      test: /\.(otf|eot|svg|ttf|woff|woff2).*$/,
      loader: 'url?limit=8192'
    } ]
  },

I tried both,

import 'octicons/octicons/octicons.css';

And in scss

@import 'octicons/octicons/octicons.css';

Nothing helps.

I don't understand how your library is actually loading octicons styles. Neither lib or demo app loads it. How should it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions