mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-07-30 12:30:32 +08:00
Added support for bower components, as requested in https://github.com/weblogixx/react-webpack-template/issues/8
This commit is contained in:
+9
-1
@@ -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
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user