summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..9e2680e
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,26 @@
+const CopyWebpackPlugin = require('copy-webpack-plugin');
+const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
+
+module.exports = {
+ entry: {},
+ output: {
+ path: __dirname,
+ },
+
+ 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' },
+ ],
+ }),
+ ],
+
+ // minimize copied js and css
+ optimization: {
+ minimizer: [
+ `...`,
+ new CssMinimizerPlugin(),
+ ],
+ },
+};