summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 261c1c44..fd36b0f9 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -23,6 +23,11 @@ for (let i = 0; i < 7; i++) {
themeEntries[`theme${i}`] = `./resources/assets/themes/theme${i}.less`;
}
+const emojis = {};
+for (let emoji of ['redface', 'wind', 'smile', 'sad', 'lol', 'cry', 'rolleyes', 'evil', 'mad', 'question']){
+ emojis[`${emoji}`] = `./resources/assets/emojis/${emoji}.gif`;
+}
+
module.exports = {
context: __dirname,
resolve: {
@@ -31,6 +36,7 @@ module.exports = {
entry: {
...themeEntries,
vendor: './resources/assets/js/vendor.js',
+ ...emojis,
},
output: {
path: path.resolve('public/assets'),
@@ -46,6 +52,7 @@ module.exports = {
query: { cacheDirectory: true },
},
{ test: /\.(eot|ttf|otf|svg|woff2?)(\?.*)?$/, loader: 'file-loader' },
+ { test: /\.gif$/, loader: 'file-loader?name=emojis/[name].[ext]' },
{ test: /\.json$/, loader: 'json-loader' },
{ test: /\.css$/, loader: 'style-loader!css-loader' },
{ test: /\.less$/, use: ExtractTextPlugin.extract({