Added support for bower components, as requested in https://github.com/weblogixx/react-webpack-template/issues/8

This commit is contained in:
Chris
2015-10-27 08:45:12 +01:00
parent 89f6f1701b
commit 827dd86a3c
5 changed files with 26 additions and 2 deletions
+9 -1
View File
@@ -1,6 +1,9 @@
var path = require('path');
var srcPath = path.join(__dirname, '/../src/');
// Add needed plugins here
var BowerWebpackPlugin = require('bower-webpack-plugin');
module.exports = {
devtool: 'eval',
module: {
@@ -38,5 +41,10 @@ module.exports = {
styles: srcPath + 'styles/',
config: srcPath + 'config/' + process.env.REACT_WEBPACK_ENV
}
}
},
plugins: [
new BowerWebpackPlugin({
searchResolveModulesDirectories: false
})
]
};