diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-13 13:16:49 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-25 17:12:26 +0200 |
commit | 77817797707238746490e069e789abf4c2327bc3 (patch) | |
tree | 9f20d6921ec476ac9e88181bb590f83996777aee /apps/accessibility/webpack.common.js | |
parent | ab266a7798b1a423f92fba74fa9003ccbe2554da (diff) | |
download | nextcloud-server-77817797707238746490e069e789abf4c2327bc3.tar.gz nextcloud-server-77817797707238746490e069e789abf4c2327bc3.zip |
Accessibility ♿
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/accessibility/webpack.common.js')
-rw-r--r-- | apps/accessibility/webpack.common.js | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/accessibility/webpack.common.js b/apps/accessibility/webpack.common.js new file mode 100644 index 00000000000..cb38e307cf7 --- /dev/null +++ b/apps/accessibility/webpack.common.js @@ -0,0 +1,46 @@ +const path = require('path'); +const { VueLoaderPlugin } = require(`vue-loader`); + +module.exports = { + entry: path.join(__dirname, `src`, `main.js`), + output: { + path: path.resolve(__dirname, './js'), + publicPath: '/js/', + filename: 'accessibility.js' + }, + module: { + rules: [ + { + test: /\.css$/, + use: ['vue-style-loader', 'css-loader'] + }, + { + test: /\.scss$/, + use: ['vue-style-loader', 'css-loader', 'sass-loader'] + }, + { + test: /\.vue$/, + loader: 'vue-loader' + }, + { + test: /\.js$/, + loader: 'babel-loader', + exclude: /node_modules/ + }, + { + test: /\.(png|jpg|gif|svg)$/, + loader: 'file-loader', + options: { + name: '[name].[ext]?[hash]' + } + } + ] + }, + plugins: [new VueLoaderPlugin()], + resolve: { + alias: { + vue$: 'vue/dist/vue.esm.js' + }, + extensions: ['*', '.js', '.vue', '.json'] + } +}; |