Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
feat: add case-sensitive-paths-webpack-plugin (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau authored Feb 20, 2017
1 parent 8d86c52 commit 7a3fb95
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/build/webpack.config.common.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { HotModuleReplacementPlugin, LoaderOptionsPlugin, NamedModulesPlugin } from 'webpack';
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import postcssOmitImportTilde from 'postcss-omit-import-tilde';
import postcssImport from 'postcss-import';
import postcssUrl from 'postcss-url';
Expand Down Expand Up @@ -106,6 +107,11 @@ export function config(options) {
}),
options.hot && new HotModuleReplacementPlugin(),
options.hot && new NamedModulesPlugin(),

// enforces the entire path of all required modules match the exact case
// of the actual path on disk. Using this plugin helps alleviate cases
// for developers working on case insensitive systems like OSX.
options.dev && new CaseSensitivePathsPlugin(),
].filter(Boolean),
};
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"babel-preset-react": "^6.22.0",
"babel-preset-stage-1": "^6.22.0",
"babel-register": "^6.22.0",
"case-sensitive-paths-webpack-plugin": "^1.1.4",
"chalk": "^1.1.3",
"commander": "^2.9.0",
"css-loader": "^0.26.0",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,10 @@ caniuse-db@^1.0.30000346, caniuse-db@^1.0.30000617, caniuse-db@^1.0.30000618:
version "1.0.30000619"
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000619.tgz#bffaa8150637c3182d3914a9718369b079299529"

case-sensitive-paths-webpack-plugin@^1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-1.1.4.tgz#8aaedd5699a86cac2b34cf40d9b4145758978472"

caseless@~0.11.0:
version "0.11.0"
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
Expand Down

0 comments on commit 7a3fb95

Please sign in to comment.