1 Star 0 Fork 2

chx / ivideo

forked from leopku / ivideo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.base.js 961 Bytes
一键复制 编辑 原始数据 按行查看 历史
Amila Welihinda 提交于 2018-01-06 06:24 . v0.13.0 (#1166)
/**
* Base webpack config used across other specific configs
*/
import path from 'path';
import webpack from 'webpack';
import { dependencies as externals } from './app/package.json';
export default {
externals: Object.keys(externals || {}),
module: {
rules: [{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
cacheDirectory: true
}
}
}]
},
output: {
path: path.join(__dirname, 'app'),
// https://github.com/webpack/webpack/issues/1114
libraryTarget: 'commonjs2'
},
/**
* Determine the array of extensions that should be used to resolve modules.
*/
resolve: {
extensions: ['.js', '.jsx', '.json'],
modules: [
path.join(__dirname, 'app'),
'node_modules',
],
},
plugins: [
new webpack.EnvironmentPlugin({
NODE_ENV: 'production'
}),
new webpack.NamedModulesPlugin(),
],
};
1
https://gitee.com/chxchxkkk/ivideo.git
git@gitee.com:chxchxkkk/ivideo.git
chxchxkkk
ivideo
ivideo
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891