Skip to content

Commit

Permalink
No longer using .jsx extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Nov 29, 2016
1 parent a86b317 commit ac9e05d
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"lint:js": "eslint . --ext .js --ext .jsx",
"lint:js": "eslint .",
"lint:js:fix": "npm run lint:js -- --fix",
"clean": "rimraf public/bundle",
"prebuild": "npm run clean",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path')
const webpack = require('webpack')

const config = {
entry: './src/client.jsx',
entry: './src/client',
output: {
path: path.resolve(__dirname, 'public/bundle'),
publicPath: '/bundle/',
Expand All @@ -11,7 +11,7 @@ const config = {
module: {
rules: [
{
test: /\.(js|jsx)$/,
test: /\.js$/,
exclude: /node_modules/,
use: 'babel-loader',
options: {
Expand All @@ -28,8 +28,7 @@ const config = {
modules: [
'node_modules',
path.resolve(__dirname, 'src')
],
extensions: ['.js', '.jsx']
]
},
plugins: [
new webpack.EnvironmentPlugin(['NODE_ENV'])
Expand Down

0 comments on commit ac9e05d

Please sign in to comment.