diff options
author | Daniel Weipert <code@drogueronin.de> | 2020-10-28 20:24:41 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2020-10-28 20:26:03 +0100 |
commit | 73c4fbbbedc67aa85686db9ff1e7624f655b7483 (patch) | |
tree | cf046c85244527a97f110a5fd5fce354c0c2e517 | |
parent | ff5b1598c918b12ff9b222b0397b43d0ed5ffae6 (diff) |
Moves assets folder path to webpack output
-rw-r--r-- | webpack.config.js | 6 |
1 files 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' }, ], }), ], |