Last active
November 12, 2015 14:15
-
-
Save reebalazs/502554f8615cec7477b9 to your computer and use it in GitHub Desktop.
babel does not load mypackage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var include = [ | |
path.resolve(path.join(__dirname, 'src')), | |
/// path.join(__dirname, '..', '..', '..', 'src'), | |
path.resolve(path.join(__dirname, 'node_modules', 'nucleus', 'src')) | |
]; | |
module.exports = { | |
hot: false, | |
entry: [ | |
path.resolve(__dirname, './src/index') | |
], | |
output: { | |
path: path.join(__dirname, 'dist'), | |
filename: 'static/index.js', | |
publicPath: '/', | |
contentBase: './dist' | |
}, | |
plugins: [], | |
module: { | |
loaders: [ | |
{ test: /\.js$/, include, loader: 'babel-loader' }, | |
{ test: /\.less$/, loader: 'style-loader!css-loader!less-loader' }, | |
{ test: /\.css$/, loader: 'style-loader!css-loader' }, | |
{ test: /\.json$/, loader: 'json-loader' }, | |
{ test: /\.csv?$/, loader: 'dsv-loader' } | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment