Skip to content

Commit

Permalink
feat: Ignore *.min.js files from eslint and babel loaders
Browse files Browse the repository at this point in the history
Closes: #317
  • Loading branch information
d4rkr00t committed Mar 3, 2018
1 parent aacf679 commit d316f06
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 100 deletions.
227 changes: 130 additions & 97 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"dependencies": {
"autoprefixer": "7.2.3",
"babel-core": "6.26.0",
"babel-eslint": "8.0.3",
"babel-eslint": "8.2.2",
"babel-loader": "7.1.2",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
Expand Down
4 changes: 2 additions & 2 deletions src/webpack/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function rules(params: AikParams): Loader[] {
{
test: /\.jsx?$/,
enforce: "pre",
exclude: /(node_modules|bower_components|aik\/lib\/webpack)/,
exclude: /(node_modules|bower_components|aik\/lib\/webpack|\.min\.js)/,
loader: require.resolve("eslint-loader"),
options: {
configFile: path.join(__dirname, "..", "eslint-config.js"),
Expand All @@ -122,7 +122,7 @@ export function rules(params: AikParams): Loader[] {
},
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
exclude: /(node_modules|bower_components|\.min\.js)/,
use: jsLoaders
},
{
Expand Down

0 comments on commit d316f06

Please sign in to comment.