Skip to content

Commit

Permalink
(webpack): update config for newly required absolute paths (rt2zz#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
rt2zz authored Mar 23, 2017
1 parent 2bbc25a commit e89e62e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const webpack = require('webpack')
var LodashModuleReplacementPlugin = require('lodash-webpack-plugin')
const env = process.env.NODE_ENV
const isProd = env === 'production'
const path = require('path')

let plugins = [
new LodashModuleReplacementPlugin(),
Expand All @@ -18,7 +19,7 @@ if (isProd) {
module.exports = {
entry: './src/index.js',
output: {
path: 'dist/',
path: path.join(__dirname, '/dist/'),
filename: isProd ? 'redux-persist.min.js' : 'redux-persist.js',
library: 'redux-persist',
libraryTarget: 'umd'
Expand Down

0 comments on commit e89e62e

Please sign in to comment.