10 Star 49 Fork 10

Gitee 极速下载/Boostnote

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/BoostIO/Boostnote/
克隆/下载
webpack-production.config.js 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
const skeleton = require('./webpack-skeleton')
const webpack = require('webpack')
const path = require('path')
const NodeTargetPlugin = require('webpack/lib/node/NodeTargetPlugin')
var config = Object.assign({}, skeleton, {
module: {
loaders: [
{
test: /(\.js|\.jsx)?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel'
},
{
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',
libraryTarget: 'commonjs2',
sourceMapFilename: '[name].map',
publicPath: 'http://localhost:8080/assets/'
},
plugins: [
new webpack.NoErrorsPlugin(),
new NodeTargetPlugin(),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
BABEL_ENV: JSON.stringify('production')
}
})
]
})
module.exports = config
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/Boostnote.git
git@gitee.com:mirrors/Boostnote.git
mirrors
Boostnote
Boostnote
master

搜索帮助