Permalink
Browse files

update webpack.config

  • Loading branch information...
1 parent 93d3ea7 commit dfe34a9f22aab88998be7bf6bfdc2e422e91eae5 @Rokt33r Rokt33r committed May 24, 2016
Showing with 7 additions and 7 deletions.
  1. +1 −1 webpack-production.config.js
  2. +5 −5 webpack-skeleton.js
  3. +1 −1 webpack.config.js
@@ -12,7 +12,7 @@ var config = Object.assign({}, skeleton, {
loader: 'babel'
},
{
- test: /\.styl?$/,
+ test: /\.styl$/,
exclude: /(node_modules|bower_components)/,
loader: 'style!css?modules&importLoaders=1&localIdentName=[name]__[local]___[path]!stylus?sourceMap'
}
View
@@ -5,14 +5,14 @@ const NodeTargetPlugin = require('webpack/lib/node/NodeTargetPlugin')
var config = {
entry: {
main: './browser/main/index.js',
- finder: './browser/finder/index.js'
+ // finder: './browser/finder/index.js'
},
resolve: {
- extensions: ['', '.js', '.jsx'],
+ extensions: ['', '.js', '.jsx', '.styl'],
packageMains: ['webpack', 'browser', 'web', 'browserify', ['jam', 'main'], 'main'],
alias: {
- 'lib': path.resolve(__dirname, 'lib'),
- 'browser': path.resolve(__dirname, 'browser')
+ 'lib': path.join(__dirname, 'lib'),
+ 'browser': path.join(__dirname, 'browser')
}
},
plugins: [
@@ -23,7 +23,7 @@ var config = {
use: [require('nib')()],
import: [
'~nib/lib/nib/index.styl',
- path.resolve(__dirname, 'browser/styles/index.styl')
+ path.join(__dirname, 'browser/styles/index.styl')
]
},
externals: [
View
@@ -10,7 +10,7 @@ var config = Object.assign({}, skeleton, {
loader: 'babel?cacheDirectory'
},
{
- test: /\.styl?$/,
+ test: /\.styl$/,
exclude: /(node_modules|bower_components)/,
loader: 'style!css?modules&importLoaders=1&localIdentName=[name]__[local]___[path]!stylus?sourceMap'
}

0 comments on commit dfe34a9

Please sign in to comment.