mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Complete change password flow prototype
This commit is contained in:
@@ -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'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Reference in New Issue
Block a user