Skip to content
Snippets Groups Projects
Select Git revision
  • a4240fd0272eb79b7d99cccfa7d14e8a1e12921d
  • rebase/glitch-soc default protected
  • features/local_only
  • pleroma
  • master
  • features/attachments-enhance
  • glitch-soc/fixes/scrolling
  • rebase/tootsuite-2.5.0 protected
  • rebase/tootsuite-2.4.3 protected
  • rebase/tootsuite-2.4.2 protected
  • pleroma-old protected
  • unread
  • authors
  • procfix
  • fix-privacy-policy
  • feature-bio-fields
  • button
  • feature-paranoia
  • bundle-2020-05-14 protected
  • bundle-2020-02-27 protected
  • bundle-2020-05-20 protected
  • bundle-2020-01-22 protected
  • bundle-2020-01-20 protected
  • bundle-2019-06-26 protected
  • bundle-2019-04-11 protected
  • bundle-2019-03-07 protected
  • bundle-2019-02-10 protected
  • bundle-2019-10-01 protected
  • v2.6.0 protected
  • v2.6.0rc4 protected
  • v2.6.0rc3 protected
  • v2.6.0rc2 protected
  • v2.6.0rc1 protected
  • v2.5.2 protected
  • v2.5.1 protected
  • v2.5.0 protected
  • v2.5.0rc2 protected
  • v2.5.0rc1 protected
38 results

postcss.config.js

Blame
  • build.js 917 B
    // https://github.com/shelljs/shelljs
    require('./check-versions')()
    require('shelljs/global')
    env.NODE_ENV = 'production'
    
    var path = require('path')
    var config = require('../config')
    var ora = require('ora')
    var webpack = require('webpack')
    var webpackConfig = require('./webpack.prod.conf')
    
    console.log(
      '  Tip:\n' +
      '  Built files are meant to be served over an HTTP server.\n' +
      '  Opening index.html over file:// won\'t work.\n'
    )
    
    var spinner = ora('building for production...')
    spinner.start()
    
    var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory)
    rm('-rf', assetsPath)
    mkdir('-p', assetsPath)
    cp('-R', 'static/*', assetsPath)
    
    webpack(webpackConfig, function (err, stats) {
      spinner.stop()
      if (err) throw err
      process.stdout.write(stats.toString({
        colors: true,
        modules: false,
        children: false,
        chunks: false,
        chunkModules: false
      }) + '\n')
    })