Skip to content

pxtorem was not worked in .scss file which has @import .scss file #38

@xinconan

Description

@xinconan

When I used pxtorem, It was worked in pure scss files, but it was not worked when the scss file import other scss files.How to fix it?
There is the webpack.config.js:

loaders: [
{
        test: /\.scss$/,
        loader: ExtractTextPlugin.extract('style-loader', 'css-loader?sourceMap!sass-loader!postcss')
 }],
postcss: [
        autoprefixer({browsers: ['last 5 versions']}),
        pxtorem({rootValue: 100, propWhiteList: []})
]

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