dev-loader
v0.1.0
Published
only load file in development
Downloads
5
Readme
DEV-LOADER
load file only in development environment.
install
npm install dev-loader --save-dev
useage
// foo.js
console.log('foo');
// bar.js
import 'dev-loader!./foo.js';
console.log('bar');
node ./bar.bundle.js
# foo
# bar
cross-env NODE_ENV=production node ./bar.bundle.js
# bar