1 Star 0 Fork 1

1oooooo/career

forked from 生涯排课/career 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
huguoyun 提交于 2018-03-18 17:58 . 学校模块
var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: {
build: path.join(__dirname, 'client/main.js'),
},
output: {
path: path.resolve(__dirname, '/dist'),
publicPath: '/dist/',
filename: '[name].js'
},
module: {
rules: [{
test: /\.vue$/,
use: ['vue-loader']
}, {
test: /\.js$/,
use: {
loader: "babel-loader",
options: {
compact: true
}
}
}, {
test: /\.pug$/,
use: ['pug-loader']
}, {
test: /\.styl$/,
use: ['style-loader', 'css-loader', 'stylus-loader']
}, {
test: /\.css$/,
use: ['style-loader', 'css-loader']
}, {
test: /\.(png|jpg|jpeg|gif|eot|ttf|woff|woff2|svg|svgz)(\?.+)?$/,
use: [{
loader: 'url-loader',
options: {
limit: 10000
}
}]
}]
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({
names: ['vendor']
})
],
devtool: 'inline-source-map'
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/enjoyO/career.git
git@gitee.com:enjoyO/career.git
enjoyO
career
career
master

搜索帮助