forked from phobal/ivideo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add comments - webpack configs and dev server
- Loading branch information
Showing
6 changed files
with
73 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
/** Used in .babelrc for 'test' environment */ | ||
|
||
// for babel-plugin-webpack-loaders | ||
require('babel-register'); | ||
const devConfigs = require('./webpack.config.development'); | ||
const validate = require('webpack-validator'); | ||
const devConfig = require('./webpack.config.development'); | ||
|
||
module.exports = validate({ | ||
output: { | ||
libraryTarget: 'commonjs2' | ||
}, | ||
module: { | ||
loaders: devConfigs.module.loaders.slice(1) // remove babel-loader | ||
// Use base + development loaders, but exclude 'babel-loader' | ||
loaders: devConfig.module.loaders.slice(1) | ||
} | ||
}); |