I try to use less bootloader in webpack, and the problem is I installed less bootloader locally, but when I try to compile everything using the webpack command in bask, it prints: "ERROR in Can not find module 'Less''. At my entry point, I less files like
require("./less_components/style.less");
Here is my webpack.config file
module.exports = { entry: "./entry.js", output: { path: "./build", filename: "./bundle.js" }, module: { loaders: [ {test: /\.js$/, exlude: /node_modules/, loader: "babel-loader"}, {test: /\.less$/, loader: "style!css!less"} ] } }
What business and how should I fix it?
less webpack
Alex buddy
source share