Breeze.js and WebPack

Has anyone out there used breeze.js with webpack?

I can not get it to work together. If anyone has done this work, can you share your webpack.config.js (and any other relevant configurations)?

I just get an error message breeze is not definedor an error stating that Q is not configured.

If you use typescript, I would love to see how you set it up, but I would only be happy with the javascript solution.

+4
source share
1 answer

Q

Q, , , ProvidePlugin. , Q , . , npm install --save q, :

new webpack.ProvidePlugin({
    Q: "q"
})

webpack.config.js, .

breeze is not defined: , Q . , npm bower, , , var breeze = require('breeze-client/breeze.debug');

require("expose?breeze!breeze-client/breeze.debug"); .

+4

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


All Articles