Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
imsurinder90 opened this issue Jul 6, 2017 · 1 comment
Closed

Comments

@imsurinder90
Copy link

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

@alexander-akait
Copy link
Member

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants