This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
rebuilding-symfony/webpack.config.js

13 lines
372 B
JavaScript
Raw Permalink Normal View History

2020-07-08 08:05:34 +00:00
let Encore = require("@symfony/webpack-encore");
Encore.disableSingleRuntimeChunk()
.setOutputPath("web/build/")
.setPublicPath("/build")
.addStyleEntry("app", "./assets/css/tailwind.pcss")
.enablePostCssLoader();
process.env.NODE_ENV =
process.env.NODE_ENV || Encore.isProduction() ? "production" : "development";
module.exports = Encore.getWebpackConfig();