Is it possible: Webpack without npm?

I started developing a new project in which the interface is responsive and the backend is in a java game. I do not use nodejs and npm.

I am trying to import the component that I developed and get the error "ReferenceError: require not defined". As I understand it, the solution is to combine all jsx files to respond to one using a tool like webpack.

Can this be done using webpack without installing npm using maven and \ or IntelliJ?

+4
source share
1 answer

Practically speaking: no.

Webpack is a Node-based application, and to install and run it, you need both Node and NPM.

, Webpack, - , "", Node, NPM.

, React , ( React), NPM.

Node/NPM . Webpack JS-, HTML, JS script, Node NPM.

, , .

+5

Source: https://habr.com/ru/post/1654741/


All Articles