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

github.com/nextcloud/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias <ilovemilk@wusa.io>2020-04-10 13:25:49 +0300
committerMatthias <ilovemilk@wusa.io>2020-04-10 13:25:49 +0300
commit133a820b88a78a4281e017d88d11bed169b5fdbf (patch)
tree0bd785eb085699b18a8283891248d77b194f5c12 /webpack.common.js
parent0a92726e3f3d082ad87101dfb9819e736bcd9df7 (diff)
add first vuejs ui version
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js57
1 files changed, 57 insertions, 0 deletions
diff --git a/webpack.common.js b/webpack.common.js
new file mode 100644
index 0000000..4883df2
--- /dev/null
+++ b/webpack.common.js
@@ -0,0 +1,57 @@
+const path = require('path');
+const VueLoaderPlugin = require('vue-loader/lib/plugin');
+
+
+module.exports = {
+ entry: {
+ index: path.join(__dirname, 'src', 'main.js'),
+ },
+ output: {
+ path: path.resolve(__dirname, './js'),
+ publicPath: '/js/',
+ filename: '[name].js',
+ chunkFilename: '[name].[chunkhash].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']
+ }
+}; \ No newline at end of file