diff options
| author | Mark Felder <feld@FreeBSD.org> | 2019-12-12 13:32:52 -0600 |
|---|---|---|
| committer | Mark Felder <feld@FreeBSD.org> | 2019-12-12 13:32:52 -0600 |
| commit | 821a2bcc68e1a6c5e0b9a8080b0b8a2be04d1dd2 (patch) | |
| tree | 61b3d62bbd93d9be9c649fa7df8763cbd4bf9195 /build/webpack.base.conf.js | |
| parent | 43d4d17b41863dd5784f1d611857a9064759946b (diff) | |
| parent | 051b9703dffa785eb3b0fde29d2ceab3fe1255ba (diff) | |
Merge branch 'develop' into feature/lockdown-timelines-private-mode
Diffstat (limited to 'build/webpack.base.conf.js')
| -rw-r--r-- | build/webpack.base.conf.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index f8968966..5cc0135e 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -3,6 +3,7 @@ var config = require('../config') var utils = require('./utils') var projectRoot = path.resolve(__dirname, '../') var ServiceWorkerWebpackPlugin = require('serviceworker-webpack-plugin') +var FontelloPlugin = require("fontello-webpack-plugin") var env = process.env.NODE_ENV // check env & config/index.js to decide weither to enable CSS Sourcemaps for the @@ -11,6 +12,8 @@ var cssSourceMapDev = (env === 'development' && config.dev.cssSourceMap) var cssSourceMapProd = (env === 'production' && config.build.productionSourceMap) var useCssSourceMap = cssSourceMapDev || cssSourceMapProd +var now = Date.now() + module.exports = { entry: { app: './src/main.js' @@ -90,6 +93,14 @@ module.exports = { new ServiceWorkerWebpackPlugin({ entry: path.join(__dirname, '..', 'src/sw.js'), filename: 'sw-pleroma.js' + }), + new FontelloPlugin({ + config: require('../static/fontello.json'), + name: 'fontello', + output: { + css: 'static/[name].' + now + '.css', // [hash] is not supported. Use the current timestamp instead for versioning. + font: 'static/font/[name].' + now + '.[ext]' + } }) ] } |
