You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The issue for 'You may need an appropriate loader to handle this file type.' #8
Reacted by Thanh Nguyen, Mark Allen, Olivier Berthonneau, DavidAmesPup, Yeyo, Edmundo Santos, Oleg K, Anthony Delgado, Kazz, Aid19801 and 58 more
Reacted by Kağan Küçük
Reacted by Alex Kapitula, patrick-larsson, Dhaval Shah, Ehsan Fahami, William Lin, Oleg Derecha, David Axelrod, Wes White and SA
Reacted by Manu Sheel Gupta, Vufa, patrick-larsson, Ryan Sivek, Dhaval Shah, Briareos Lawrence, dhaval-cygnet, Vinit, kadtewsd, James Albuquerque and 5 more
Reacted by Lucas Amoêdo, patrick-larsson, Philip Lambok, Thagoon, Dhaval Shah, dhaval-cygnet, Oleg Derecha, David Axelrod, Eduardo Costa de Paiva, Jose Agustin and 2 more
hello there! @MrBackKom solution worked for me thanks!, with just one slight variation:
If you get the latest version of the css-loader, doesn't allow you to write:
loaders:[{
test: /\.css$/,
loader:'style!css!'
}]
on the webpack.config.js instead you have to write:
(css|less) worked for me too. But m bit unsure that, if less file are be picked up by less-loader, or traditionally it is being managed by css-loader only. Could anyone please comment in here to clarify?
Activity
MrBackKom commentedon Jan 11, 2016
I have installed the style-loader & css-loader by parameter --save-dev
and this is the json content below.
MrBackKom commentedon Jan 11, 2016
@shama I have find the cause of the problem
It should be
It's my mistake,thanks a lot
shama commentedon Jan 11, 2016
Oh great catch @MrBackKom! Glad you figured it out!
imerkle commentedon Jul 23, 2017
cant get it to work still
shama commentedon Jul 24, 2017
@dsslimshaddy You config or error might be slightly different. Feel free to post it and we might be able to help.
imerkle commentedon Jul 24, 2017
Yes its fixed. Problem was with extract-text-webpack-plugin . i was using older version. after upgrading to latest it was fixed
paraofheaven commentedon Aug 11, 2017
@dsslimshaddy,but I want to use webpack 1.0, the latest version need webpack 2.0,what should I do?
RamiroIsBack commentedon Feb 22, 2018
hello there! @MrBackKom solution worked for me thanks!, with just one slight variation:
If you get the latest version of the css-loader, doesn't allow you to write:
on the webpack.config.js instead you have to write:
It is here, in the usage section, in their repo : (https://github.com/webpack-contrib/css-loader)
dkarpov commentedon Jul 18, 2018
this should help
{
test: /\.(css|less)$/,
use: ["style-loader", "css-loader", "less-loader"]
}
matinsoleil commentedon Dec 17, 2018
Work for me
HimanshuRawani commentedon Oct 25, 2019
(css|less) worked for me too. But m bit unsure that, if less file are be picked up by less-loader, or traditionally it is being managed by css-loader only. Could anyone please comment in here to clarify?