Skip to content

Commit

Permalink
change configuration and dependencies to be aligned at node 10
Browse files Browse the repository at this point in the history
  • Loading branch information
arturparkhisenko committed Mar 7, 2020
1 parent 363beb1 commit 9139f70
Show file tree
Hide file tree
Showing 9 changed files with 2,405 additions and 3,317 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"targets": {
"browsers": [
"last 2 versions",
">1%"
">1%",
"not dead"
]
},
"modules": false,
Expand Down
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.js]
quote_type = single
1 change: 0 additions & 1 deletion .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ node_modules

# Scripts #
###########
src/scripts
*.js

# Other #
Expand Down
24 changes: 17 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,29 @@ const scripts = done => {
fancyLog(
'[webpack]',
stats.toString({
// output options
all: false,
// Output options
// https://webpack.js.org/configuration/stats/
chunks: false,
// modules: false,
colors: true
assets: true,
builtAt: true,
// chunkGroups: true,
// chunks: true,
colors: true,
entrypoints: true,
errorDetails: true,
errors: true,
// modules: true,
// modulesSort: 'size',
performance: true,
timings: true,
version: true,
warnings: true
})
);

fancyLog('[webpack]', 'Packed successfully!');

gulp
.src(['./src/scripts/main.min.js', './src/scripts/main.min.js.map'])
.pipe(gulp.dest('./dist/scripts/'));
gulp.src('./src/scripts/main.min.js*').pipe(gulp.dest('./dist/scripts/'));
});

done();
Expand Down
Loading

0 comments on commit 9139f70

Please sign in to comment.