1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 19:21:18 -04:00

remove docker stuff (it doesn't play nice with webpack/gulp/etc.)

This commit is contained in:
2021-06-27 10:17:58 -04:00
parent f5f64eb87e
commit fde728bf22
8 changed files with 22 additions and 50 deletions

View File

@@ -13,7 +13,7 @@ module.exports = {
path.resolve(__dirname, "assets/sass/main.scss"),
],
mode: isProd ? "production" : "development",
devtool: "source-map",
devtool: isProd ? "nosources-source-map" : "source-map",
output: {
filename: isProd ? "js/[name]-[contenthash:8].js" : "js/[name].js",
path: path.resolve(__dirname, "static/assets/"),
@@ -60,11 +60,12 @@ module.exports = {
{
test: /\.(sa|sc|c)ss$/i,
use: [
{ loader: MiniCssExtractPlugin.loader },
{ loader: "css-loader" },
MiniCssExtractPlugin.loader,
{ loader: "css-loader", options: { sourceMap: true } },
{
loader: "postcss-loader",
options: {
sourceMap: true,
postcssOptions: {
config: false,
plugins: [
@@ -84,7 +85,7 @@ module.exports = {
},
},
},
{ loader: "sass-loader" },
{ loader: "sass-loader", options: { sourceMap: true } },
],
},
{
@@ -131,7 +132,6 @@ module.exports = {
devServer: {
contentBase: path.join(__dirname, "public/"),
publicPath: "/assets/",
// host: "0.0.0.0", // required when inside Docker
port: process.env.PORT || 1337,
compress: true,
},