Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(webpack_config/client): eslint fixes
Browse files Browse the repository at this point in the history
fix(webpack_config/client): eslint fixes
  • Loading branch information
Metnew committed Sep 13, 2017
1 parent 768dc97 commit 4080878
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
25 changes: 13 additions & 12 deletions webpack_config/client/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const {
GA_ID,
SENTRY_PUBLIC_DSN,
CLIENT_DIST_PATH,
rootPath,
srcPath,
publicPath,
isProduction,
Expand Down Expand Up @@ -108,24 +109,24 @@ const baseBuild = {
// add theme-color property
background: manifest.theme,
prefix: `favicons/`,
logo: path.resolve(config.rootPath, './static/images/logo.png'),
logo: path.join(rootPath, './static/images/logo.png'),
title,
emitStats: true,
statsFilename: 'favicons-stats.json',
// Inject the html into the html-webpack-plugin
// Inject generated html into html-webpack-plugin
inject: false,
// which icons should be generated (see https://github.com/haydenbleasel/favicons#usage)
icons: {
android: true,
appleIcon: true,
appleStartup: true,
coast: false,
favicons: true,
firefox: true,
opengraph: false,
twitter: true,
yandex: false,
windows: true
// android: true,
// appleIcon: true,
// appleStartup: true,
// coast: false,
// favicons: true,
// firefox: true,
// opengraph: false,
// twitter: true,
// yandex: false,
// windows: true
}
}),
new WebpackAssetsManifest({
Expand Down
2 changes: 1 addition & 1 deletion webpack_config/client/webpack.dev.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ baseWebpackConfig.entry.client = [

// add dev plugins
baseWebpackConfig.plugins.push(
new webpack.HotModuleReplacementPlugin(),
new WriteFilePlugin(),
new webpack.HotModuleReplacementPlugin(),
new AutoDllPlugin({
debug: true,
filename,
Expand Down
2 changes: 0 additions & 2 deletions webpack_config/client/webpack.prod.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ import webpack from 'webpack'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import CompressionPlugin from 'compression-webpack-plugin'
import OptimizeCssAssetsPlugin from 'optimize-css-assets-webpack-plugin'
import AutoDllPlugin from 'autodll-webpack-plugin'
import ProgressPlugin from 'webpack/lib/ProgressPlugin'
import OfflinePlugin from 'offline-plugin'
import UglifyJSPlugin from 'uglifyjs-webpack-plugin'
import {Plugin as ShakePlugin} from 'webpack-common-shake'
import OptimizeJsPlugin from 'optimize-js-plugin'
// import git from 'git-rev-sync'
// import _ from 'lodash'
import path from 'path'
// NOTE: WebpackShellPlugin allows you to run custom shell commands before and after build
// import WebpackShellPlugin from 'webpack-shell-plugin'
import {BundleAnalyzerPlugin} from 'webpack-bundle-analyzer'
Expand Down

0 comments on commit 4080878

Please sign in to comment.