aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/config
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-10-27 18:03:00 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-10-30 09:20:37 +0100
commit47f6f11637a29d74b171e39a3c37df3617d8aab2 (patch)
treeefdacbddefd5e6e872db66f299382ef16589d22f /server/sonar-web/config
parent0fac638a9b1300554ab9c8985db61e76a3787229 (diff)
downloadsonarqube-47f6f11637a29d74b171e39a3c37df3617d8aab2.tar.gz
sonarqube-47f6f11637a29d74b171e39a3c37df3617d8aab2.zip
remove error overlay, update pre-commit hook (#2772)
Diffstat (limited to 'server/sonar-web/config')
-rw-r--r--server/sonar-web/config/webpack.config.js39
1 files changed, 14 insertions, 25 deletions
diff --git a/server/sonar-web/config/webpack.config.js b/server/sonar-web/config/webpack.config.js
index 6af13c082c9..8cf804efdb2 100644
--- a/server/sonar-web/config/webpack.config.js
+++ b/server/sonar-web/config/webpack.config.js
@@ -1,8 +1,8 @@
+/* eslint-disable import/no-extraneous-dependencies */
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
-const eslintFormatter = require('react-dev-utils/eslintFormatter');
const webpack = require('webpack');
const paths = require('./paths');
@@ -78,18 +78,6 @@ module.exports = ({ production = true, fast = false }) => ({
},
module: {
rules: [
- // First, run the linter.
- // It's important to do this before Babel processes the JS.
- // Run for development or full build
- (!production || !fast) && {
- test: /\.js$/,
- enforce: 'pre',
- include: paths.appSrc,
- use: {
- loader: 'eslint-loader',
- options: { formatter: eslintFormatter }
- }
- },
{
test: /\.js$/,
loader: 'babel-loader',
@@ -101,6 +89,7 @@ module.exports = ({ production = true, fast = false }) => ({
{
loader: 'awesome-typescript-loader',
options: {
+ transpileOnly: true,
useBabel: true,
useCache: true
}
@@ -152,18 +141,18 @@ module.exports = ({ production = true, fast = false }) => ({
inject: false,
template: paths.appHtml,
minify: production &&
- !fast && {
- removeComments: true,
- collapseWhitespace: true,
- removeRedundantAttributes: true,
- useShortDoctype: true,
- removeEmptyAttributes: true,
- removeStyleLinkTypeAttributes: true,
- keepClosingSlash: true,
- minifyJS: true,
- minifyCSS: true,
- minifyURLs: true
- }
+ !fast && {
+ removeComments: true,
+ collapseWhitespace: true,
+ removeRedundantAttributes: true,
+ useShortDoctype: true,
+ removeEmptyAttributes: true,
+ removeStyleLinkTypeAttributes: true,
+ keepClosingSlash: true,
+ minifyJS: true,
+ minifyCSS: true,
+ minifyURLs: true
+ }
}),
new webpack.DefinePlugin({