forked from bvaughn/react-virtualized
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: prettifying configuration files
- Loading branch information
1 parent
32855b8
commit 66a1378
Showing
4 changed files
with
35 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
module.exports = { | ||
'autoprefixer': { | ||
'browsers': ['last 2 version', 'Firefox 15', 'iOS 8'] | ||
autoprefixer: { | ||
browsers: ['last 2 version', 'Firefox 15', 'iOS 8'], | ||
}, | ||
// The plugins section is used by postcss-loader with webpack | ||
plugins: [ | ||
require('autoprefixer') | ||
] | ||
} | ||
plugins: [require('autoprefixer')], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
const HtmlWebpackPlugin = require('html-webpack-plugin') | ||
const path = require('path') | ||
const webpack = require('webpack') | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
|
||
module.exports = { | ||
devtool: 'source-map', | ||
entry: { | ||
demo: './source/demo/index' | ||
demo: './source/demo/index', | ||
}, | ||
output: { | ||
path: path.join(__dirname, 'build'), | ||
filename: 'static/[name].js' | ||
filename: 'static/[name].js', | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
filename: 'index.html', | ||
inject: true, | ||
template: './index.html' | ||
template: './index.html', | ||
}), | ||
new webpack.DefinePlugin({ | ||
'process.env': { | ||
'NODE_ENV': JSON.stringify('production') | ||
} | ||
}) | ||
NODE_ENV: JSON.stringify('production'), | ||
}, | ||
}), | ||
], | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
use: ['babel-loader'], | ||
include: path.join(__dirname, 'source') | ||
include: path.join(__dirname, 'source'), | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: ['style-loader', 'css-loader?modules', 'postcss-loader'], | ||
include: path.join(__dirname, 'source') | ||
include: path.join(__dirname, 'source'), | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: ['style-loader', 'css-loader?&minimize=false'], | ||
include: path.join(__dirname, 'styles.css') | ||
} | ||
] | ||
} | ||
} | ||
include: path.join(__dirname, 'styles.css'), | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,43 @@ | ||
const HtmlWebpackPlugin = require('html-webpack-plugin') | ||
const path = require('path') | ||
const webpack = require('webpack') | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
devtool: 'eval', | ||
entry: { | ||
demo: './source/demo/index' | ||
demo: './source/demo/index', | ||
}, | ||
output: { | ||
path: path.join(__dirname, 'build'), | ||
filename: 'static/[name].js' | ||
filename: 'static/[name].js', | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
filename: 'index.html', | ||
inject: true, | ||
template: './index.html' | ||
}) | ||
template: './index.html', | ||
}), | ||
], | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
use: ['babel-loader'], | ||
include: path.join(__dirname, 'source') | ||
include: path.join(__dirname, 'source'), | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: ['style-loader', 'css-loader?modules', 'postcss-loader'], | ||
include: path.join(__dirname, 'source') | ||
include: path.join(__dirname, 'source'), | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: ['style-loader', 'css-loader?minimize=false'], | ||
include: path.join(__dirname, 'styles.css') | ||
} | ||
] | ||
include: path.join(__dirname, 'styles.css'), | ||
}, | ||
], | ||
}, | ||
devServer: { | ||
contentBase: 'build', | ||
port: 3001 | ||
} | ||
} | ||
port: 3001, | ||
}, | ||
}; |