From 8b43f4662e8d078944c208df92cc147d7fce93fe Mon Sep 17 00:00:00 2001
From: Bud Parr <budparr@gmail.com>
Date: Tue, 10 Apr 2018 22:35:56 +0000
Subject: [PATCH] Replace Asset References with a data file instead of paths (#96)
---
src/webpack.config.js | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/webpack.config.js b/src/webpack.config.js
index 04da73f..b11656d 100644
--- a/src/webpack.config.js
+++ b/src/webpack.config.js
@@ -1,6 +1,8 @@
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'
@@ -14,7 +16,6 @@
loader: 'babel-loader',
options: {
presets: ['env']
- // plugins: [require('babel-plugin-transform-object-rest-spread')]
}
}
},
@@ -38,16 +39,17 @@
},
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
})
- // new webpack.ProvidePlugin({
- // $: "jquery",
- // jQuery: "jquery"
- // })
],
watchOptions: {
watch: true
--
Gitblit v1.10.0