forked from tlivings/hapi-react-redux-ssr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
36 lines (33 loc) · 879 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import Path from 'path';
import Webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
const config = {
entry: [
'./dist/lib/app/client'
],
output: {
path: Path.join(__dirname, 'static'),
filename: 'bundle.js'
},
resolve: {
modulesDirectories: ['node_modules'],
extensions: ['', '.js', '.css']
},
plugins: [
new Webpack.NoErrorsPlugin(),
new ExtractTextPlugin('styles.css', {
allChunks: true
})
],
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.css$/i,
loader: ExtractTextPlugin.extract('style', 'css?modules&localIdentName=[name]_[local]_[hash:base64:5]'),
}
],
}
};
export default config;