roman01la / webpack-closure-compiler

[DEPRECATED] Google Closure Compiler plugin for Webpack
MIT License
464 stars 25 forks source link

Passing multiple externs #8

Closed ccoffey closed 7 years ago

ccoffey commented 8 years ago

Can you please add an example of how to pass multiple externs? The following does not appear to be working.

new ClosureCompilerPlugin({
  compiler: {
    language_in: 'ECMASCRIPT5',
    language_out: 'ECMASCRIPT5',
    compilation_level: 'ADVANCED',
    externs: [
      'node_modules/google-closure-compiler/contrib/externs/underscore-1.5.2.js',
      'node_modules/google-closure-compiler/contrib/externs/jquery-1.9.js'
    ]
  },
  concurrency: 3,
})
roman01la commented 8 years ago

Hi. There's no support for externs. Feel free to submit a PR. It should be fairly simple to implement.

roman01la commented 8 years ago

I'm reopening this issue. Looks like externs are supported and I can see Closure Compiler does use them. But I'm not experienced with externs. Can you please help me to understand how to check that externs doesn't work?

roman01la commented 7 years ago

I'm closing this issue. Please reopen if you encounter this again.