Skip to content

Module not found: Error: Can't resolve 'backgrid/lib/backgrid.css' #567

Closed
@imsurinder90

Description

@imsurinder90

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
I am using ExtractTextPlugin plugin to bundle the multiple CSS files into one with following webpack configuration, it works without any error when I remove 'backgrid.css' from Lib.css. I double checked the path to backgrid.css is correct.
Backgrid version: backgrid": "^0.3.8

If the current behavior is a bug, please provide the steps to reproduce.

const extractLib = new ExtractTextPlugin('lib.css');

entry: { lib_css: './pgadmin/static/css/lib.css', }

module: { rules: { { test: /\.css$/, use: extractLib.extract({ use: [{ loader: 'css-loader', }], }), }, } }

plugins: [ 'extractLib']

Lib.css:
@import '~backgrid/lib/backgrid.css'; @import '~bootstrap/dist/css/bootstrap.css'; @import '~alertifyjs/build/css/alertify.css';

What is the expected behavior?
As the path to backgrid.css is correct, it should be bundled.

Did i missed something or anyone facing similar issue with wrong reference to backgrid.css ?

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as your webpack version, Node.js version and Operating System.

Webpack - 3.0.0
Node.js - v8.0.0
Operating System - OSX Yosemite - 10.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions