This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| 0: "d4920286de51402132dc", /* ← hash for the application bundle */ | |
| 1: "29a3cf9344f1503c9f8f", | |
| 2: "e22b11ab6e327c7da035", | |
| /* .. and so on ... */ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new UglifyJsPlugin({ | |
| uglifyOptions: { | |
| compress: { | |
| arrows: false, | |
| booleans: false, | |
| cascade: false, | |
| collapse_vars: false, | |
| comparisons: false, | |
| computed_props: false, | |
| hoist_funs: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const CrudeTimingPlugin = require('./crude-timing-plugin'); | |
| module.exports = { | |
| plugins: [ | |
| new CrudeTimingPlugin(), | |
| new UglifyJSPlugin(), | |
| ] | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let CrudeTimingPlugin = function() {}; | |
| CrudeTimingPlugin.prototype.apply = function(compiler) { | |
| compiler.plugin('compilation', (compilation) => { | |
| let startOptimizePhase; | |
| compilation.plugin('optimize-chunk-assets', (chunks, callback) => { | |
| // Cruddy way of measuring minification time. UglifyJSPlugin does all | |
| // its work in this phase of compilation so we time the duration of | |
| // the entire phase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const CrudeTimingPlugin = require('./crude-timing-plugin'); | |
| { | |
| plugins: [ | |
| new CrudeTimingPlugin(), | |
| ], | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let CrudeTimingPlugin = function() {}; | |
| CrudeTimingPlugin.prototype.apply = function(compiler) { | |
| compiler.plugin('compilation', (compilation) => { | |
| let startOptimizePhase; | |
| compilation.plugin('optimize-chunk-assets', (chunks, callback) => { | |
| // Cruddy way of measuring minification time. UglifyJSPlugin does all | |
| // its work in this phase of compilation so we time the duration of | |
| // the entire phase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node --inspect ./node_modules/.bin/webpack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # spec/rails_helper.rb | |
| config.before(:suite) do | |
| DatabaseCleaner.strategy = :transaction | |
| DatabaseCleaner.clean_with(:truncation) | |
| end | |
| config.around(:each) do |example| | |
| DatabaseCleaner.cleaning do | |
| example.run | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Gemfile | |
| group :test do | |
| gem 'database_cleaner' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .travis.yml | |
| services: | |
| - elasticsearch | |
| before_script: | |
| - sleep 5 # To make sure Elasticsearch instance is ready |
NewerOlder