$ npm test
> @ test /Users/rberdeen/work/scratch/webpack-require-context
> webpack test.js out.js
Hash: 6fdd8fd64209c6bbad29
Version: webpack 2.1.0-beta.25
Time: 81ms
Asset Size Chunks Chunk Names
out.js 2.8 kB 0 [emitted] main
[0] ./index.js ^\.\/.*$ 160 bytes {0} [built]
[1] ./test.js 23 bytes {0} [built]
ERROR in ENOTDIR: not a directory, scandir '/Users/rberdeen/work/scratch/webpack-require-context/index.js'
npm ERR! Test failed. See above for more details.
Last active
September 30, 2016 18:04
-
-
Save also/5cc6c7aedd976260e07d8a48b26cce81 to your computer and use it in GitHub Desktop.
webpack context resolver bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// nothing here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"devDependencies": { | |
"webpack": "^2.1.0-beta.25" | |
}, | |
"scripts": { | |
"test": "webpack test.js out.js" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require.context('./'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
resolve: { | |
plugins: [] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment