forked from seethroughdev/react-ux-password-field
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.server.config.js
31 lines (29 loc) · 991 Bytes
/
webpack.server.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
var path = require('path');
var autoprefixer = require('autoprefixer-core');
var csswring = require('csswring');
module.exports = {
// the entry point of your library
entry: ['webpack/hot/dev-server', './demo/src/index.js'],
// where 3rd-party modules can reside
resolve: {
modulesDirectories: ['node_modules', 'bower_components']
},
output: {
// where to put standalone build file
path: path.join(__dirname, 'demo'),
// the name of the standalone build file
filename: 'demo.bundle.js'
},
externals: {
'react': 'React'
},
module: {
loaders: [
{ test: /\.css/, loader: "style-loader!css-loader!postcss-loader" },
{ test: /\.scss$/, loader: 'style-loader!css-loader!postcss-loader!sass?outputStyle=expanded' },
{ test: /\.js$/, loader: 'babel-loader'},
{ test: /\.png/, loader: 'url?limit=100000&mimetype=image/png' }
]
},
postcss: [autoprefixer({ browsers: ['> 1%'] }), csswring]
};