Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Commit 2f6ff4a

Browse files
committed
Added .js and .jsx recognition
1 parent 1be271a commit 2f6ff4a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ module.exports = {
99
path: setup.path.join(setup.APP_DIR, "dev"),
1010
filename: "[name].js",
1111
},
12+
resolve: {
13+
extensions: [
14+
'.js', '.jsx',
15+
],
16+
},
1217
plugins: [
1318
new webpack.optimize.CommonsChunkPlugin(
1419
{name: 'vendor', filename: 'vendor.js',}

webpack.production.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ module.exports = {
1111
filename: '[name].[chunkhash:8].min.js',
1212
chunkFilename: '[name].[chunkhash:8].chunk.js',
1313
},
14+
resolve: {
15+
extensions: [
16+
'.js', '.jsx',
17+
],
18+
},
1419
module: {
1520
rules: [
1621
{

0 commit comments

Comments
 (0)