Skip to content

Commit

Permalink
chore(package): fix webpack config.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeekens committed Mar 25, 2017
1 parent 9a835f3 commit 30d7c77
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions grunt/tasks/webpack.js
@@ -1,20 +1,23 @@
/* globals module */
const path = require('path');

module.exports = {
build: {
target: 'web',
debug: true,
devtool: 'inline-source-map',
entry: [
'./src/index.js'
],
output: {
path: './dist/',
path: path.resolve(__dirname, '../../dist'),
filename: 'dactylographsy.js',
},
modulesDirectories: [
'node_modules',
'./src'
],
resolve: {
modules: [
'node_modules',
'./src'
],
},
stats: {
colors: false,
modules: true,
Expand All @@ -27,8 +30,8 @@ module.exports = {
test: /\.js$/,
exclude: /node_modules/,
use: [{
loader: 'babel',
query: {
loader: 'babel-loader',
options: {
presets: ['es2015']
}
}]
Expand Down

0 comments on commit 30d7c77

Please sign in to comment.