mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
update webpack.config
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user