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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/accessibility/webpack.common.js')
-rw-r--r--apps/accessibility/webpack.common.js46
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']
+ }
+};