Answer the question
In order to leave comments, you need to log in
How to spell alias correctly?
Tell me what I'm doing wrong.
I write an alias to webpack.mix.js, but it always gives me a path error.
To test and check the correctness of the path, I created a directory and a file:
mix.webpackConfig({
resolve: {
alias: {
Utilities: path.resolve(__dirname, 'test/test.js'),
}
}
});
[webpack-cli] ReferenceError: path is not defined
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question