Skip to content

Commit 8e1ea38

Browse files
author
Nicolas Garnier
committed
Fixed build of StyledFirebaseAuth
1 parent 048efdc commit 8e1ea38

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

webpack.config.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ const config = {
2424
output: {
2525
filename: 'StyledFirebaseAuth.js',
2626
path: path.resolve(__dirname, './dist'),
27+
library: 'StyledFirebaseAuth',
28+
libraryTarget: 'commonjs2',
29+
},
30+
externals: {
31+
'react': 'React',
32+
'firebaseui': 'firebaseui',
2733
},
2834
devtool: 'source-map',
2935
resolve: {
@@ -40,17 +46,12 @@ const config = {
4046
test: /\.jsx?$/,
4147
loader: 'babel-loader',
4248
exclude: /node_modules/,
43-
include: [path.resolve('src')],
49+
include: path.resolve(__dirname, './src'),
4450
},
4551
{
4652
test: /\.css/,
47-
include: [/\.global\./, /node_modules/],
48-
loader: 'css-loader',
49-
options: {
50-
importLoaders: 1,
51-
modules: false,
52-
minimize: true,
53-
},
53+
include: /node_modules/,
54+
use: ['style-loader', 'css-loader'],
5455
}]}};
5556

5657
module.exports = config;

0 commit comments

Comments
 (0)