Skip to content

Commit

Permalink
verify changes with a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Escalante committed Jun 10, 2016
1 parent 053fba6 commit 87bba3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/index.js
Expand Up @@ -41,7 +41,8 @@ test.cb('EVERYTHING WORKS', (t) => {
{ test: /\.txt$/, loader: 'source' }
]},
ignore: ['**/views/ignoreme.txt'],
plugins: [plugin]
plugins: [plugin],
devtool: 'source-map'
})

project.on('error', t.fail)
Expand Down
2 changes: 1 addition & 1 deletion test/plugin.js
Expand Up @@ -24,7 +24,7 @@ module.exports = class TestPlugin extends EventEmitter {

compiler.plugin('compilation', (compilation) => {
compilation.plugin('optimize-chunk-assets', (chunks, done) => {
this.util.removeAssets(compilation, this.injectFile)
this.util.removeAssets(compilation, this.injectFile, chunks)
this.emit('removeAssets')
done()
})
Expand Down

0 comments on commit 87bba3a

Please sign in to comment.