1 Star 0 Fork 0

spwx820 / Boostnote

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 973 Bytes
一键复制 编辑 原始数据 按行查看 历史
const skeleton = require('./webpack-skeleton')
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!css?modules&importLoaders=1&localIdentName=[name]__[local]___[path]!stylus?sourceMap'
},
{
test: /\.json$/,
loader: 'json'
}
]
},
output: {
path: path.join(__dirname, 'compiled'),
filename: '[name].js',
sourceMapFilename: '[name].map',
libraryTarget: 'commonjs2',
publicPath: 'http://localhost:8080/assets/'
},
debug: true,
devtool: 'cheap-module-eval-source-map',
devServer: {
port: 8080,
hot: true,
inline: true,
quiet: false,
publicPath: 'http://localhost:8080/assets/'
}
})
module.exports = config
1
https://gitee.com/spwx/Boostnote.git
git@gitee.com:spwx/Boostnote.git
spwx
Boostnote
Boostnote
master

搜索帮助