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

custom-webpack customWebpackConfig error #140

Open
alunDillon opened this issue Apr 28, 2020 · 0 comments
Open

custom-webpack customWebpackConfig error #140

alunDillon opened this issue Apr 28, 2020 · 0 comments

Comments

@alunDillon
Copy link

{
test: /.less/,
exclude: /node_modules/,
use: [
{
loader: 'style-loader',
options: {},
},
{
loader: require.resolve('css-loader'),
options: {
modules: true,
localIndexName:"[name][local]_[hash:base64:5]"
},
},
{
loader: require.resolve('less-loader'), // compiles Less to CSS
}
}

build error:
ERROR in Module build failed (from ../node_modules/@angular-devkit/build-angular/node_modules/less-loader/dist/cjs.js):

var api = require("!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
^
Unrecognised input

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

1 participant