1

Just started using webpack and understand the basics. Although, I'm trying to use an external library and want to follow the "webpack way". Currently I use npm then require using commonjs syntax. What's the correct way for including libraries such as http://johnpolacek.github.io/imagefill.js/

1 Answer 1

1

You can use this type of config:

resolve: { root: __dirname, alias: { vendors: './libs' } }, entry: { vendor: [ 'expose?$!expose?jQuery!jquery/dist/jquery.min.js', 'vendors/jquery-imagefill.js' ] }, 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.