Answer the question
In order to leave comments, you need to log in
How to force Webpack to compile a module along with a project?
Hello.
I continue to fight with the assembly of a large project (js + vue + css), I collect it with Webpack.
The project has the main part (js, vue, scss) and there is a separate core module, which contains vue and scss files that draw the non-changeable parts of the front.
I installed this core module (npm i -D), but when I run npm run build
, I don't get the built files from this module in the right directory. That is, suppose the module has head.js (+.scss) and footer.js, then after the project is built, they do not appear in the build directory, where the finished files are added.
How to make them appear there? The assembly passes without any errors, the module is specified in the dependencies. The feeling that the module simply does not cling to the project.
Configs:
package.js fragment of the project:
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