6 Commits
Author SHA1 Message Date
James Ide e72584b66a Remove react plugin from eslintrc and fix lint warnings 2015-08-22 04:09:58 -07:00
James Ide a9adb69664 Upgrade babel and eslint 2015-08-22 02:55:32 -07:00
James Ide b0d4c5ec9a Derive the contents of the modules ourselves + work with webpack-dev-server
Don't use webpack's value for the module source, because when running webpack-dev-server, the generated modules have `require()` calls that needs loaders. Since Node doesn't have loaders, these `require()` calls will crash.

Instead, generate the module source ourselves by deriving the full asset path from the public path plus the asset's relative path.
2015-06-08 22:10:05 -07:00
James Ide 0ac9156e2f Accept multiple file systems to write to
You can now specify `fileSystems: [require('fs')]` to force the plugin to write to the real file system. Use `AssetModulePlugin.DefaultFileSystem` to write to the default one that the webpack compiler uses.
2015-06-06 01:57:21 -07:00
James Ide 57a9036d87 Fix exclude option (was negated) and fix callback invocation
The plugin callback was invoked once per asset. Instead we need to invoke it just once, so use `Promise.all` to wait for all of the assets to be compiled before invoking the callback. Eventually we should subscribe to events for individual assets so that we don't re-emit all of the asset modules on every build when using `--watch`.
2015-06-05 17:56:45 -07:00
James Ide 15589bf2ce Add README and configure babel, eslint, and flow
- README with explanation
- Run `npm run-script build` to build `lib`
- Compiles to ES6 that io.js 2 can run
- eslint is configured
- flow is configured, but had to comment out a class field declaration
2015-06-05 01:34:02 -07:00