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

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2018-12-31 23:12:46 +0300
committerdartcafe <github@dartcafe.de>2018-12-31 23:12:46 +0300
commit052ac374a6bf335ef98982dfe513b71d158910f4 (patch)
treead89c289b9bdddeda5b30534e3bc950f282c8f8f /webpack.common.js
parentd1e6a2372ff0f57e14a779c2e083e40c35193bbe (diff)
Update environment
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js53
1 files changed, 53 insertions, 0 deletions
diff --git a/webpack.common.js b/webpack.common.js
new file mode 100644
index 00000000..01d9746f
--- /dev/null
+++ b/webpack.common.js
@@ -0,0 +1,53 @@
+const path = require('path');
+const { VueLoaderPlugin } = require('vue-loader');
+
+module.exports = {
+ entry: path.join(__dirname, 'src/js/', 'main.js'),
+ output: {
+ path: path.resolve(__dirname, './js'),
+ publicPath: '/js/',
+ filename: 'create-poll.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']
+ }
+};