diff options
author | silverwind | 2020-07-29 20:44:23 +0200 |
---|---|---|
committer | GitHub | 2020-07-29 14:44:23 -0400 |
commit | 2fd78c151e0e49db113078095f1d9e8c7478e828 (patch) | |
tree | 19526559ed4148f93355786d829c44113cdac27c /webpack.config.js | |
parent | 2f6aadffa8243736825564cd1ce32d0d5a1eb391 (diff) |
Move jquery-minicolors to npm/webpack (#12305)
* Move jquery-minicolors to npm/webpack
- Unvendor and add as npm dependency
- Removed unneeded backend variable
- Fixed existing bug where picker would previously initizalize to the
same green color when editing a label.
There was probably a version bump because the previous version was
over 3 years old but it seems to be compatible.
* use file-loader
* trailing comma and comment update
* misc tweaks
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index 42959a50e..f21c48199 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -243,7 +243,20 @@ module.exports = { options: { name: '[name].[ext]', outputPath: 'fonts/', - publicPath: (url) => `../fonts/${url}`, // seems required for monaco's font + publicPath: (url) => `../fonts/${url}`, // required to remove css/ path segment + }, + }, + ], + }, + { + test: /\.png$/i, + use: [ + { + loader: 'file-loader', + options: { + name: '[name].[ext]', + outputPath: 'img/webpack/', + publicPath: (url) => `../img/webpack/${url}`, // required to remove css/ path segment }, }, ], |