Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-11-27 20:58:27 +0300
committerFilipa Lacerda <filipa@gitlab.com>2018-11-27 20:58:27 +0300
commita99f342b4231659d39b9a145acc3652f3de3bce8 (patch)
tree096b376fac6ccd6519f1e60720ba67d56e1bef75 /config
parentd0b529d17a507709467cc75c607c19d465f9852d (diff)
parent50e21a89a0009813b9f090288b22c64c5cefbd58 (diff)
Merge branch 'issuable-suggestions' into 'master'
Suggest issues when typing title Closes #22071 See merge request gitlab-org/gitlab-ce!22866
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 9ecae9790fd..b9044e13f50 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -84,7 +84,7 @@ module.exports = {
},
resolve: {
- extensions: ['.js'],
+ extensions: ['.js', '.gql', '.graphql'],
alias: {
'~': path.join(ROOT_PATH, 'app/assets/javascripts'),
emojis: path.join(ROOT_PATH, 'fixtures/emojis'),
@@ -101,6 +101,11 @@ module.exports = {
strictExportPresence: true,
rules: [
{
+ type: 'javascript/auto',
+ test: /\.mjs$/,
+ use: [],
+ },
+ {
test: /\.js$/,
exclude: path => /node_modules|vendor[\\/]assets/.test(path) && !/\.vue\.js/.test(path),
loader: 'babel-loader',
@@ -122,6 +127,11 @@ module.exports = {
},
},
{
+ test: /\.(graphql|gql)$/,
+ exclude: /node_modules/,
+ loader: 'graphql-tag/loader',
+ },
+ {
test: /\.svg$/,
loader: 'raw-loader',
},