aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-10-18 14:16:10 +0000
committers-ol <s-ol@users.noreply.github.com>2018-10-18 14:16:10 +0000
commit8844d29223626240ff99a0cdaccf1ee5a36cb3f6 (patch)
tree1740fd0291959aa8d3d0b266158d7eaaa685224d /webpack.config.js
parentupdate dependencies (diff)
downloadmmm-8844d29223626240ff99a0cdaccf1ee5a36cb3f6.tar.gz
mmm-8844d29223626240ff99a0cdaccf1ee5a36cb3f6.zip
towards self-compiling
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/webpack.config.js b/webpack.config.js
deleted file mode 100644
index 6783e8f..0000000
--- a/webpack.config.js
+++ /dev/null
@@ -1,41 +0,0 @@
-const fs = require('fs');
-const path = require('path');
-const HtmlWebpackPlugin = require('html-webpack-plugin');
-
-const config = {
- context: path.resolve(__dirname, 'app'),
- entry: './index.moon',
- mode: 'development',
- plugins: [
- new HtmlWebpackPlugin({ title: 'MMM: lunar low-gravity scripting playground' }),
- ],
-};
-
-const dependencies = {
- 'svg.js': 'svg.js',
-};
-fs.readdirSync(config.context).forEach(file => {
- if (file.endsWith('.moon') && !file.endsWith('.server.moon')) {
- const basename = file.replace(/(\.client)?\.moon$/, '');
- dependencies[`app.${basename}`] = `./${file}`;
- }
-});
-
-config.module = {
- rules: [
- {
- test: /\.moon$/,
- use: [
- {
- loader: 'fengari-loader',
- options: {
- dependencies,
- },
- },
- 'moonscript-loader',
- ]
- },
- ]
-};
-
-module.exports = config;