当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 22

追风少年2 / amaze-vue
关闭

forked from smokingRabbit / amaze-vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.dev.js 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
jixuecong@lvwan.com 提交于 2017-12-06 18:24 . 修改开发端口为9000
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
const webpackBaseConfig = require('./webpack.config');
webpackBaseConfig.entry = {
app: path.join(__dirname, 'example/index.js'),
vender: ['vue', 'vue-router']
};
webpackBaseConfig.plugins = webpackBaseConfig.plugins.concat([
new HtmlWebpackPlugin({
title: 'amaze-vue',
filename: 'index.html',
template: path.join(__dirname, 'example/index.html'),
inject: 'body',
minify: {
removeComments: true,
collapseWhitespace: true
}
}),
new webpack.optimize.CommonsChunkPlugin({name: 'vender', filename: 'vender.js'}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('develop')
}
}),
new webpack.HotModuleReplacementPlugin(),
new FriendlyErrorsPlugin()
]);
webpackBaseConfig.devServer = {
contentBase: path.resolve(__dirname, './example'),
hot: true,
inline: false,
progress: true,
stats: {
color: true
},
port: process.env.PORT || '9000',
historyApiFallback: true
};
module.exports = webpackBaseConfig;
JavaScript
1
https://gitee.com/letItbe/amaze-vue.git
git@gitee.com:letItbe/amaze-vue.git
letItbe
amaze-vue
amaze-vue
master

搜索帮助