Mastodonのフロントエンド実装 / Frontend of Mastodon

Mastodonのフロントエンド実装 / Frontend of Mastodon

Frontend Conference Fukuoka 2018 (https://frontend-conf.fukuoka.jp/) で話した内容になります。

B9025074d487cd0328f1dc816e5ac50a?s=128

Yamagishi Kazutoshi

December 08, 2018
Tweet

Transcript

  1. 7.

    // config/webpack/production.js process.env.NODE_ENV = process.env.NODE_ENV || 'production' const environment =

    require('./environment') module.exports = environment.toWebpackConfig()
  2. 9.

    // config/webpack/environment.js (custom) const { environment } = require('@rails/webpacker') environment.config

    .set('resolve.extensions', ['.ts', '.js']) environment.loaders .append('ts', { test: /\.ts$/, use: 'ts-loader' }) module.exports = environment
  3. 15.
  4. 18.