We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54c5d07 commit c84358aCopy full SHA for c84358a
webpack.config.js
@@ -15,6 +15,34 @@ module.exports = {
15
exclude: /(node_modules)/,
16
use: 'babel-loader',
17
},
18
+ {
19
+ test: /\.css$/,
20
+ use: [
21
+ 'style-loader',
22
+ 'css-loader'
23
+ ]
24
+ }
25
],
26
27
+ resolve: {
28
+ alias: {
29
+ 'react': path.resolve(__dirname, './node_modules/react'),
30
+ 'react-dom': path.resolve(__dirname, './node_modules/react-dom'),
31
32
+ },
33
+ externals: {
34
+ // Don't bundle react or react-dom
35
+ react: {
36
+ commonjs: "react",
37
+ commonjs2: "react",
38
+ amd: "React",
39
+ root: "React"
40
41
+ "react-dom": {
42
+ commonjs: "react-dom",
43
+ commonjs2: "react-dom",
44
+ amd: "ReactDOM",
45
+ root: "ReactDOM"
46
47
48
};
0 commit comments