summaryrefslogtreecommitdiff
path: root/webpack.common.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-12Update webpack config and JS import for spin.js v4David Mehren1-1/+1
Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-08Upgrade to expose-loader 1.0.3David Mehren1-30/+30
Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-08Upgrade to imports-loader 1.2.0David Mehren1-3/+5
Signed-off-by: David Mehren <git@herrmehren.de>
2020-12-21Generate CSS filenames with contenthashDavid Mehren1-1/+4
Previously, .css files always had the same name, which can lead to caching problems. In our case, the new CSS for the HedgeDoc logo was not loaded when Chrome had the 1.6.0 CSS in the cache, leading the HedgeDoc logo filling the whole screen. This commit adds the contenthash to the .css files generated by webpack, which ensures that changed files are always loaded. References: https://github.com/webpack-contrib/mini-css-extract-plugin#filename https://webpack.js.org/configuration/output/#outputfilename Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-11Revert "Adjust webpack config to new code mirror version"David Mehren1-230/+3
It turned out that we can't directly use the codemirror source files and actually need to run their build script manually. This reverts commit 0ec180de Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-11Fix path to codemirror.js in Webpack config :bug:David Mehren1-1/+1
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-31Adjust webpack config to new code mirror versionTilman Vatteroth1-3/+230
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-08-19Update copy-webpack-plugin, css-loader, html-webpack-plugin, style-loader, ↵David Mehren1-48/+50
webpack and webpack-cli Signed-off-by: David Mehren <git@herrmehren.de>
2020-02-01Update RevealJS to version 3.9.2Sheogorath1-2/+0
This update of revealJS helps us to get rid of the headjs depedency integration using webpack. It updates reveal.js to 3.9.2 and updates the csp hash accordingly for using the slide mode. Background for this update is the critical security vulnerability described by snyk in their disclosure: https://snyk.io/vuln/SNYK-JS-REVEALJS-543841 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2020-01-15Fix font paths when useCDN is false and no `urlPath` is presentEnrico Guiraud1-1/+6
Signed-off-by: Enrico Guiraud <enrico.guiraud@cern.ch>
2019-12-20Fix urlPath support, let CodiMD be served from a subpath correctlyEnrico Guiraud1-1/+1
Webpack now uses relative paths for resources linked from by static snippets. A templated <base> tag has been introduced in headers so app.js can set the base URL at runtime. Signed-off-by: Enrico Guiraud <enrico.guiraud@cern.ch>
2019-10-25Fix compatibility with MathJax 2.7.6David Mehren1-1/+9
Signed-off-by: David Mehren <dmehren1@gmail.com>
2019-05-12Remove sass-loader, to avoid confusionPedro Ferreira1-12/+0
Signed-off-by: Pedro Ferreira <pedro@dete.st>
2019-04-16Replace js-url with wurlSheogorath1-3/+0
js-url is outdated and wurl is it's successor. This will fix some vulnerabilities in the dependencies and also optimize the build process by removing the external library toward internal tooling. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-11-10Remove the xss library from webpackSheogorath1-6/+0
We can load the xss functions directly from the library instead of loading them through the expose loader of webpack, this should simplify the setup and maybe even improve speed a bit. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-19Code style fixes for webpack.common.jsDavid Mehren1-9/+9
Signed-off-by: David Mehren <dmehren1@gmail.com>
2018-10-19Use const instead of var in webpack configs.David Mehren1-6/+6
Signed-off-by: David Mehren <dmehren1@gmail.com>
2018-10-10Remove dead package octiconSheogorath1-6/+3
Octicon no longer provides its CSS classes and this way is useless in CodiMD. Replacing all used classes in the UI and remove it from build system. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-10Use webpack-merge.David Mehren1-0/+1
Move html export config to own file. Delete unnecessary config options. Use cheap source maps. Signed-off-by: David Mehren <dmehren1@gmail.com>
2018-10-10Rename Webpack config to official recommendationDavid Mehren1-0/+0
Signed-off-by: David Mehren <dmehren1@gmail.com>
2018-10-05Replace font-awesome with fork-awesomeSheogorath1-4/+4
This patch replaces font-awesome with its fork called fork-awesome. Besides the fact that the newer versions of font-awesome can't be shipped with distros like debian due to license issues, fork-awesome also provides more FOSS related icons and builds on top of version 4.7.x of font-awesome, which we used until this patch. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-09-06Upgrade to Webpack 4 - remove baseUrl propertyDavid Mehren1-2/+1
Signed-off-by: David Mehren <dmehren1@gmail.com>
2018-09-06Upgrade to Webpack 4 - fix CSS import orderDavid Mehren1-17/+34
Signed-off-by: David Mehren <dmehren1@gmail.com>
2018-09-06Upgrade to Webpack 4 - first tryDavid Mehren1-99/+121
Signed-off-by: David Mehren <dmehren1@gmail.com>
2018-06-30Update to octicon 4.4.0Sheogorath1-3/+3
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-16Removing google drive integrationSheogorath1-4/+0
It's sad but it's not working. For multiple releases this should be already broken which shows how often it's used. As there is also a security issue related to that, it's better to remove the feature completely. Whoever wants to rewrite it, feel free to go. This commit removes the Google Drive integration from HackMD's Frontend editor and this way removes the need to provide any API key and Client ID in the frontend. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-04-16Fix possible file limit errorsSheogorath1-0/+5
As we currently may need higher nofile limits than usual/default on various systems this commit should probide a fix for that an allow to build HackMD without highering these limits and increase security. Inspiration was found in a copy-webpack-plugin-issue[1] and found by @thegcat[2]. Thanks for that! Signed-off-by: Sheogorath <sheogorath@shivering-isles.com> [1]: https://github.com/webpack-contrib/copy-webpack-plugin/issues/59#issuecomment-228563990 [2]: https://github.com/thegcat
2018-03-06Remove engine.io-client dependency and fix webpack configDavid Mehren1-6/+4
Signed-off-by: David Mehren <dmehren1@gmail.com>
2017-11-02Revert "Load js-url lib using legacy-loader"Literallie1-7/+3
Didn't work in Firefox for some reason. `[Script Loader] ReferenceError: module is not defined` This reverts commit 5b83deb043296c23ff912a2472703c1f7faddb4b.
2017-10-22Load js-url lib using legacy-loaderLiterallie1-3/+7
Doesn't use eval, plus no window object access
2017-06-08Fix lodash will be ignored by webpack in pack bundleWu Cheng-Han1-2/+1
2017-05-07Load statusbar template by string-loaderYukai Huang1-0/+3
2017-04-18Use abcjs on cdnjs, cc @jackycutePeter Dave Hello1-3/+0
2017-03-26Add support of abcjsWu Cheng-Han1-1/+8
2017-03-14Update to fix pagination error in list.js over v1.5.0Wu Cheng-Han1-2/+0
2017-03-12Fix webpack copy relative path in #384Yukai Huang1-10/+5
2017-03-12Do not log assets info in webpack buildYukai Huang1-0/+6
2017-03-09Use JavaScript Standard Style (part 2)BoHong Li1-415/+415
Fixed all fail on frontend code.
2017-02-19Only copy needed files in webpackYukai Huang1-5/+22
2017-02-03Update to use babel-polyfill to support ES6 features in old browsersWu Cheng-Han1-0/+8
2017-01-21Revert experimental vue for nowYukai Huang1-7/+1
2016-12-24Fix js-url not import correctlyWu Cheng-Han1-3/+3
2016-12-24Basic setup for Vue appYukai Huang1-1/+7
2016-12-24Install vue and babel dependencyYukai Huang1-0/+4
2016-12-20Fix wrong package name reference in webpack config for bootstrap-validatorWu Cheng-Han1-2/+2
2016-12-12Fix the generate template not including base url variableWu Cheng-Han1-1/+2
2016-12-02Update to support optional email register and signinWu Cheng-Han1-0/+2
2016-11-29Fix incorrect resource arrangement in webpack configWu Cheng-Han1-2/+2
2016-11-29Update webpack and slide resource loading to reduce pack sizeWu Cheng-Han1-1/+6
2016-11-29Fix slide resource path and style load orders to avoid conflictsWu Cheng-Han1-0/+8