1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00
Files
Boostnote/webpack.config.js
Rokt33r f9d41de8f1 Babel6
2015-12-30 14:19:01 +09:00

33 lines
734 B
JavaScript

const skeleton = require('./webpack-skeleton')
const webpack = require('webpack')
const path = require('path')
var config = Object.assign({}, skeleton, {
module: {
loaders: [
{
test: /\.js?$/,
exclude: /node_modules/,
loader: 'babel?cacheDirectory'
},
{
test: /\.styl?$/,
exclude: /(node_modules|bower_components)/,
loader: 'style-loader!css-loader!stylus-loader'
}
]
},
output: {
path: path.join(__dirname, 'compiled'),
filename: '[name].js',
sourceMapFilename: '[name].map',
libraryTarget: 'commonjs2',
publicPath: 'http://localhost:8080/assets/'
},
debug: true,
devtool: 'eval-source-map'
})
module.exports = config