SimonDegraeve / loopback-webpack-plugin

Compile Loopback project with Webpack. This is useful for isomorphic application.
MIT License
12 stars 3 forks source link

Issue webpack bundling loopback #2

Open joslui opened 8 years ago

joslui commented 8 years ago

Hi, good morning! I have an issue, generating the bundled file with the plugin. Please guys if you have any cue how to solve this, will be appreciated. Regards.

WARNING in ./~/loopback-boot/browser.js Critical dependencies: 28:21-40 the request of a dependency is an expression @ ./~/loopback-boot/browser.js 28:21-40

WARNING in ./~/loopback-boot/lib/compiler.js Critical dependencies: 393:17-42 the request of a dependency is an expression 419:34-58 the request of a dependency is an expression 443:19-36 the request of a dependency is an expression 566:10-27 the request of a dependency is an expression 756:21-38 the request of a dependency is an expression @ ./~/loopback-boot/lib/compiler.js 393:17-42 419:34-58 443:19-36 566:10-27 756:21-38

WARNING in ./~/loopback-boot/lib/config-loader.js Critical dependencies: 124:17-27 the request of a dependency is an expression @ ./~/loopback-boot/lib/config-loader.js 124:17-27

WARNING in ./~/ejs/ejs.js Critical dependencies: 1:113-120 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results. @ ./~/ejs/ejs.js 1:113-120

ERROR in ./~/loopback/lib/loopback.js Module not found: Error: Cannot resolve module 'webpack/node_modules/node-libs-browser/mock/empty' in /var/www/loopback2/cms/node_modules/loopback/lib @ ./~/loopback/lib/loopback.js 8:9-22

zamb3zi commented 8 years ago

I couldn't get this working so I came up with an alternative approach: loopback-webpack-example