mirror of
https://github.com/supleed2/ELEC60015-HLP-CW.git
synced 2024-11-10 02:05:48 +00:00
37 lines
712 B
JavaScript
37 lines
712 B
JavaScript
var path = require("path");
|
|
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
function resolve(filePath) {
|
|
return path.join(__dirname, filePath)
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
entry: [resolve("src/Renderer/scss/main.css"),resolve("src/Renderer/Renderer.fs.js")],
|
|
resolve: {
|
|
modules: ['node_modules']
|
|
},
|
|
output: {
|
|
filename: "renderer.js"
|
|
},
|
|
optimization: {
|
|
splitChunks: {
|
|
chunks: 'all',
|
|
},
|
|
},
|
|
plugins: [
|
|
|
|
],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
enforce: "pre",
|
|
use: ["source-map-loader"],
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|