(pack, hash, ext)
| 163 | } |
| 164 | |
| 165 | function buildFilename (pack, hash, ext) { |
| 166 | return [ |
| 167 | pack.name, |
| 168 | // extract-text-plugin uses [contenthash] and webpack uses [hash] |
| 169 | hash ? (ext === 'css' ? '[contenthash]' : '[hash]') : pack.version, |
| 170 | ext || 'js' |
| 171 | ].join('.') |
| 172 | } |
| 173 | |
| 174 | function checkRequired (opts) { |
| 175 | var props = ['out', 'in'] |