diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-11-27 17:58:27 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-11-27 17:58:27 +0000 |
commit | a99f342b4231659d39b9a145acc3652f3de3bce8 (patch) | |
tree | 096b376fac6ccd6519f1e60720ba67d56e1bef75 /config | |
parent | d0b529d17a507709467cc75c607c19d465f9852d (diff) | |
parent | 50e21a89a0009813b9f090288b22c64c5cefbd58 (diff) | |
download | gitlab-ce-a99f342b4231659d39b9a145acc3652f3de3bce8.tar.gz |
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.js | 12 |
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', }, |