Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

can not import semantic-ui-css/components/button.css #1341

Open
ssageghi opened this issue Jan 20, 2018 · 0 comments
Open

can not import semantic-ui-css/components/button.css #1341

ssageghi opened this issue Jan 20, 2018 · 0 comments

Comments

@ssageghi
Copy link

ssageghi commented Jan 20, 2018

Hi recently I update my webpack and add loader for my app
my problem occurs when trying to import CSS in component js files
like this component or any other component from semantic-ui-css

semantic-ui-css/components/button.css

add this CSS loader but it's not working and I don't have any error
is my webpack config
please help

{
    test: /\.(css)$/,
    loader: extractStyles.extract({
        fallback: 'style-loader',
        use: [
          {
            loader: 'css-loader',
            options: {
              sourceMap: project.sourcemaps,
              minimize: {
                autoprefixer: {
                  add: true,
                  remove: true,
                  browsers: ['last 2 versions'],
                },
                discardComments: {
                  removeAll : true,
                },
                discardUnused: false,
                mergeIdents: false,
                reduceIdents: false,
                safe: true,
                sourcemap: project.sourcemaps,
              },
            },
          }
          ]
      }
    )
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant