chore(build) Use include instead of exclude, allowing for 'npm link autocomplete.js' (#165)
This commit is contained in:
parent
4e75ee7787
commit
fbe85da6b0
1 changed files with 9 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {join} from 'path';
|
||||
import path from 'path';
|
||||
|
||||
export default {
|
||||
entry: './dev/app.js',
|
||||
|
|
@ -9,7 +9,12 @@ export default {
|
|||
},
|
||||
module: {
|
||||
loaders: [{
|
||||
test: /\.js$/, exclude: /node_modules/, loader: 'babel'
|
||||
test: /\.js$/,
|
||||
include: [
|
||||
path.resolve(__dirname, 'src'),
|
||||
path.resolve(__dirname, 'dev'),
|
||||
path.resolve(__dirname, 'scripts')
|
||||
], loader: 'babel'
|
||||
}]
|
||||
},
|
||||
devServer: {
|
||||
|
|
@ -21,10 +26,10 @@ export default {
|
|||
// helps fixing the npm link not working with webpack
|
||||
// http://stackoverflow.com/a/33722844/147079
|
||||
resolve: {
|
||||
fallback: [join(__dirname, '..', 'node_modules')]
|
||||
fallback: [path.join(__dirname, '..', 'node_modules')]
|
||||
},
|
||||
// same issue, for loaders like babel
|
||||
resolveLoader: {
|
||||
fallback: [join(__dirname, '..', 'node_modules')]
|
||||
fallback: [path.join(__dirname, '..', 'node_modules')]
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue