From 73c4fbbbedc67aa85686db9ff1e7624f655b7483 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 28 Oct 2020 20:24:41 +0100 Subject: Moves assets folder path to webpack output --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 9e2680e..800e6ba 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,14 +4,14 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); module.exports = { entry: {}, output: { - path: __dirname, + path: __dirname + '/assets', }, plugins: [ new CopyWebpackPlugin({ patterns: [ - { from: __dirname + '/node_modules/codemirror/mode/twig/twig.js', to: __dirname + '/assets/codemirror/mode/twig/twig.js' }, - { from: __dirname + '/node_modules/codemirror/theme', to: __dirname + '/assets/codemirror/theme' }, + { from: __dirname + '/node_modules/codemirror/mode/twig/twig.js', to: 'codemirror/mode/twig/twig.js' }, + { from: __dirname + '/node_modules/codemirror/theme', to: 'codemirror/theme' }, ], }), ], -- cgit v1.2.3