mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
38ef96b5f3
Former-commit-id: aa3efbd6ac0955c49a0187851d999b48fd2fa784 [formerly 9703b344fc39b60d3d2f637baa9fa134a4700149] [formerly 04eb98512022fac1cd346600ab9780c178c18aa6 [formerly 50bb68ddc8
]]
Former-commit-id: c6c70deb184efd8b59d99357fc1be6555e76a071 [formerly dee69992cb1423d7a692d9dd4df5ece0bd0262dc]
Former-commit-id: 9b35e3926819a1c0e6e8c042d73d9b089f9d3be6
36 lines
855 B
JavaScript
36 lines
855 B
JavaScript
require('./check-versions')()
|
|
|
|
process.env.NODE_ENV = 'development'
|
|
|
|
var rm = require('rimraf')
|
|
var path = require('path')
|
|
var chalk = require('chalk')
|
|
var webpack = require('webpack')
|
|
var config = require('./config')
|
|
var webpackConfig = require('./webpack.dev.conf')
|
|
var fs = require('fs')
|
|
|
|
if (fs.existsSync('./rice-box.go')) {
|
|
fs.unlinkSync('./rice-box.go')
|
|
}
|
|
|
|
if (fs.existsSync('./caddy/hugo/rice-box.go')) {
|
|
fs.unlinkSync('./caddy/hugo/rice-box.go')
|
|
}
|
|
|
|
rm(path.join(config.assetsRoot, config.assetsSubDirectory), err => {
|
|
if (err) throw err
|
|
webpack(webpackConfig, function (err, stats) {
|
|
if (err) throw err
|
|
process.stdout.write(stats.toString({
|
|
colors: true,
|
|
modules: false,
|
|
children: false,
|
|
chunks: false,
|
|
chunkModules: false
|
|
}) + '\n\n')
|
|
|
|
console.log(chalk.cyan(' Build complete.\n'))
|
|
})
|
|
})
|