aboutsummaryrefslogtreecommitdiff
path: root/themes/ananke/src/webpack.config.js
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2019-10-06 21:10:46 +0200
committerDimitri Staessens <[email protected]>2019-10-06 21:10:46 +0200
commit568553394d0a8b34668a75c9839a0f1f426469b2 (patch)
tree175c08844f05611b059ba6900fb6519dbbc735d2 /themes/ananke/src/webpack.config.js
parentd5d6f70371958eec0679831abd283498ff2731e5 (diff)
downloadwebsite-568553394d0a8b34668a75c9839a0f1f426469b2.tar.gz
website-568553394d0a8b34668a75c9839a0f1f426469b2.zip
theme: Switch to docsy theme
Diffstat (limited to 'themes/ananke/src/webpack.config.js')
-rw-r--r--themes/ananke/src/webpack.config.js57
1 files changed, 0 insertions, 57 deletions
diff --git a/themes/ananke/src/webpack.config.js b/themes/ananke/src/webpack.config.js
deleted file mode 100644
index b11656d..0000000
--- a/themes/ananke/src/webpack.config.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var path = require('path');
-var ExtractTextPlugin = require('extract-text-webpack-plugin');
-var webpack = require('webpack');
-var AssetsPlugin = require('assets-webpack-plugin');
-
-module.exports = {
- entry: {
- app: './js/main.js'
- },
- module: {
- rules: [
- {
- test: /\.js$/,
- exclude: /node_modules/,
- use: {
- loader: 'babel-loader',
- options: {
- presets: ['env']
- }
- }
- },
- {
- test: /\.css$/,
- use: ExtractTextPlugin.extract({
- fallback: 'style-loader',
- use: 'css-loader?importLoaders=1!postcss-loader'
- })
- }
- ]
- },
-
- output: {
- path: path.join(__dirname, './../static/dist'),
- filename: 'js/[name].[chunkhash].js'
- },
-
- resolve: {
- modules: [path.resolve(__dirname, 'src'), 'node_modules']
- },
-
- plugins: [
- new AssetsPlugin({
- filename: 'webpack_assets.json',
- path: path.join(__dirname, '../data'),
- prettyPrint: true
- }),
- new ExtractTextPlugin({
- filename: getPath => {
- return getPath('css/[name].[contenthash].css');
- },
- allChunks: true
- })
- ],
- watchOptions: {
- watch: true
- }
-};