Repository: airavata-django-portal
Updated Branches:
  refs/heads/master 3042564a2 -> 840789b5f


http://git-wip-us.apache.org/repos/asf/airavata-django-portal/blob/840789b5/django_airavata/templates/base.html
----------------------------------------------------------------------
diff --git a/django_airavata/templates/base.html 
b/django_airavata/templates/base.html
index b42f8d7..3dde6ba 100644
--- a/django_airavata/templates/base.html
+++ b/django_airavata/templates/base.html
@@ -1,7 +1,7 @@
 {% load static %}
 <!DOCTYPE html>
 <head>
-    <link rel=stylesheet type=text/css href={% static 'css/main.css' %}>
+    <link rel=stylesheet type=text/css href={% static 'common/dist/main.css' 
%}>
     <link rel=stylesheet type=text/css 
href=https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css>
     <link rel=stylesheet type=text/css
           
href=https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css>

http://git-wip-us.apache.org/repos/asf/airavata-django-portal/blob/840789b5/django_airavata/webpack.config.js
----------------------------------------------------------------------
diff --git a/django_airavata/webpack.config.js 
b/django_airavata/webpack.config.js
new file mode 100644
index 0000000..9c1c644
--- /dev/null
+++ b/django_airavata/webpack.config.js
@@ -0,0 +1,91 @@
+var path = require('path')
+var webpack = require('webpack')
+const ExtractTextPlugin = require("extract-text-webpack-plugin");
+
+const extractSass = new ExtractTextPlugin({
+    filename: "[name].css"
+});
+
+module.exports = {
+  entry: [
+      './static/common/js/index.js',
+      './static/common/scss/main.scss',
+  ],
+  output: {
+    path: path.resolve(__dirname, './static/common/dist/'),
+    publicPath: '/static/common/dist/',
+    filename: '[name].js'
+  },
+  module: {
+    rules: [
+      {
+        test: /\.vue$/,
+        loader: 'vue-loader',
+        options: {
+          loaders: {
+          }
+          // other vue-loader options go here
+        }
+      },
+      {
+        test: /\.js$/,
+        loader: 'babel-loader',
+        exclude: /node_modules/
+      },
+      {
+        test: /\.(png|jpg|gif|svg)$/,
+        loader: 'file-loader',
+        options: {
+          name: '[name].[ext]?[hash]'
+        }
+      },
+      {
+        test: /\.scss$/,
+        use: extractSass.extract({
+            use: [{
+                loader: "css-loader"
+            }, {
+                loader: "sass-loader"
+            }]
+        })
+      }
+    ]
+  },
+  plugins: [
+      extractSass
+  ],
+  resolve: {
+    alias: {
+      'vue$': 'vue/dist/vue.esm.js'
+    }
+  },
+  devServer: {
+    historyApiFallback: true,
+    noInfo: true
+  },
+  performance: {
+    hints: false
+  },
+  devtool: '#eval-source-map'
+}
+
+if (process.env.NODE_ENV === 'production') {
+  module.exports.devtool = '#source-map'
+  // http://vue-loader.vuejs.org/en/workflow/production.html
+  module.exports.plugins = (module.exports.plugins || []).concat([
+    new webpack.DefinePlugin({
+      'process.env': {
+        NODE_ENV: '"production"'
+      }
+    }),
+    new webpack.optimize.UglifyJsPlugin({
+      sourceMap: true,
+      compress: {
+        warnings: false
+      }
+    }),
+    new webpack.LoaderOptionsPlugin({
+      minimize: true
+    })
+  ])
+}

Reply via email to