diff options
| author | Henry Jameson <me@hjkos.com> | 2019-12-08 16:07:30 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-12-08 16:07:30 +0200 |
| commit | 1b1620a7551293234d000022886c53e4520517a1 (patch) | |
| tree | 15e272b21c7e2c9ea5758c05b3cbcd3cd4a06a97 /build | |
| parent | ff95d865d223fed5bab2a4d72ff3a22f014d3c56 (diff) | |
| parent | e60d9f2d5ae7de753cc9d3e74bd675ec79c9219e (diff) | |
Merge remote-tracking branch 'upstream/develop' into streaming
* upstream/develop:
Remove whitespace hack on empty post content
Change output directory of fontello
add html-webpack-plugin to karma config
use another fork of fontello-webpack-plugin
add animate-spin class
remove needless code
use another approach for versioning font files
versioning the font resources through webpack
fix "can't find property of undefined" errors in mrf transparency panel
move mention button right next to mute button
restore muted users collapsing logic on other user’s profiles
Diffstat (limited to 'build')
| -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]' + } }) ] } |
