aboutsummaryrefslogtreecommitdiff
path: root/config/webpack.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack.js')
-rw-r--r--config/webpack.js43
1 files changed, 43 insertions, 0 deletions
diff --git a/config/webpack.js b/config/webpack.js
new file mode 100644
index 0000000..f808b06
--- /dev/null
+++ b/config/webpack.js
@@ -0,0 +1,43 @@
+'use strict';
+
+const Path = require('path');
+
+module.exports = {
+ entry: './app/dasein',
+
+ output: {
+ path: Path.resolve(__dirname, '../static/assets'),
+ filename: 'bundle.js',
+ publicPath: '/assets/',
+ library: 'Dasein',
+ libraryTarget: 'umd'
+ },
+
+ module: {
+ loaders: [
+ {
+ test: /\.js$/,
+ exclude: /(node_modules|doc)/,
+ loader: 'babel-loader',
+ query: {
+ presets: ['es2015']
+ }
+ }
+ ]
+ },
+
+ resolve: {
+ modules: [
+ 'node_modules',
+ Path.resolve(__dirname, '../app')
+ ],
+
+ alias: {
+ 'vue$': 'vue/dist/vue.common.js'
+ }
+ },
+
+ extensions: ['.js', '.json', '.css'],
+
+ context: Path.resolve(__dirname, '..')
+};