Browse Source

Enable cache for babel-loader (#4505)

pull/4/head
Yamagishi Kazutoshi 6 years ago
committed by Eugen Rochko
parent
commit
fae71b653a
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      .travis.yml
  2. +3
    -0
      config/webpack/loaders/babel.js

+ 1
- 0
.travis.yml View File

@ -6,6 +6,7 @@ cache:
- node_modules
- public/assets
- public/packs-test
- tmp/cache/babel-loader
dist: trusty
sudo: required

+ 3
- 0
config/webpack/loaders/babel.js View File

@ -1,3 +1,5 @@
const { resolve } = require('path');
module.exports = {
test: /\.js$/,
// include react-intl because transform-react-remove-prop-types needs to apply to it
@ -8,5 +10,6 @@ module.exports = {
loader: 'babel-loader',
options: {
forceEnv: process.env.NODE_ENV || 'development',
cacheDirectory: resolve(__dirname, '..', '..', '..', 'tmp', 'cache', 'babel-loader'),
},
};

Loading…
Cancel
Save