mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 23:13:33 +00:00
Enable cache for babel-loader (#4505)
This commit is contained in:
parent
dfcd2834f9
commit
fae71b653a
|
@ -6,6 +6,7 @@ cache:
|
||||||
- node_modules
|
- node_modules
|
||||||
- public/assets
|
- public/assets
|
||||||
- public/packs-test
|
- public/packs-test
|
||||||
|
- tmp/cache/babel-loader
|
||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
const { resolve } = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
// include react-intl because transform-react-remove-prop-types needs to apply to it
|
// include react-intl because transform-react-remove-prop-types needs to apply to it
|
||||||
|
@ -8,5 +10,6 @@ module.exports = {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
forceEnv: process.env.NODE_ENV || 'development',
|
forceEnv: process.env.NODE_ENV || 'development',
|
||||||
|
cacheDirectory: resolve(__dirname, '..', '..', '..', 'tmp', 'cache', 'babel-loader'),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue