aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-05-02 12:45:13 +0000
committers-ol <s-ol@users.noreply.github.com>2018-05-02 12:48:28 +0000
commit30cc9b08c843e83219d6ede53cff2a06d4316915 (patch)
tree53e303f02f69c4bc8d0dc782b0574241a3506932 /webpack.config.js
downloadmmm-30cc9b08c843e83219d6ede53cff2a06d4316915.tar.gz
mmm-30cc9b08c843e83219d6ede53cff2a06d4316915.zip
initial commit
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..092890a
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,22 @@
+const path = require('path');
+const HtmlWebpackPlugin = require('html-webpack-plugin');
+
+module.exports = {
+ context: path.resolve(__dirname, 'app'),
+ entry: './centerbyweight.moon',
+ mode: 'development',
+ module: {
+ rules: [
+ {
+ test: /\.moon$/,
+ use: [
+ 'fengari-loader',
+ 'moonscript-loader',
+ ]
+ },
+ ]
+ },
+ plugins: [
+ new HtmlWebpackPlugin('MMM: lunar low-gravity scripting playground'),
+ ],
+}