Complete change password flow prototype

This commit is contained in:
SleepWalker
2016-05-01 20:50:55 +03:00
parent 48a726567a
commit e2a782f0b7
21 changed files with 672 additions and 67 deletions

View File

@@ -31,6 +31,9 @@ var isTest = process.argv.some(function(arg) {
});
process.env.NODE_ENV = isProduction ? 'production' : 'development';
if (isTest) {
process.env.NODE_ENV = 'test';
}
const CSS_CLASS_TEMPLATE = isProduction ? '[hash:base64:5]' : '[path][name]-[local]';
var config;
@@ -78,6 +81,14 @@ var webpackConfig = {
extensions: ['', '.js', '.jsx']
},
externals: isTest ? {
// http://airbnb.io/enzyme/docs/guides/webpack.html
'cheerio': 'window',
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true,
'react/addons': true
} : {},
devServer: {
host: 'localhost',
port: 8080,
@@ -142,6 +153,10 @@ var webpackConfig = {
{
test: /\.(png|gif|jpg)$/,
loader: 'url?limit=1000'
},
{
test: /\.json$/,
loader: 'json'
}
]
},