aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..32aa33a
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,33 @@
+const MiniCssExtractPlugin = require("mini-css-extract-plugin");
+const path = require('path');
+
+module.exports = {
+ mode: "none",
+ entry: "./src/public/app.js",
+ output: {
+ path: path.resolve(__dirname, "public/assets/js"),
+ filename: "bundle.js"
+ },
+ resolve: {
+ alias: {
+ "node_modules": path.join(__dirname, "node_modules")
+ }
+ },
+ module: {
+ rules: [
+ {
+ test: /\.scss$/,
+ use: [
+ MiniCssExtractPlugin.loader,
+ "css-loader",
+ "sass-loader"
+ ]
+ }
+ ]
+ },
+ plugins: [
+ new MiniCssExtractPlugin({
+ filename: "../css/bundle.css"
+ })
+ ]
+};