File name
Commit message
Commit date
const {PROJECT_NAME, BASE_DIR, SERVICE_STATUS} = require('./Global');
module.exports = {
name: PROJECT_NAME,
mode: SERVICE_STATUS,
devtool: 'eval',
entry: {
app: [`${BASE_DIR}/client/views/index.jsx`]
},
module: {
rules: [{
test: /\.(js|jsx)?$/,
loader: 'babel-loader',
options: {
presets: ['@babel/preset-react'],
}
}, {
test: /\.css$/,
use: ['style-loader', 'css-loader']
}, {
test: /\.(jpe?g|png|gif|svg|ttf|eot|woff|woff2)$/i,
use: [{
loader:'url-loader',
options:{
limit:8192,
fallback:require.resolve('file-loader')
}
}]
}],
},
plugins: [],
output: {
path: `${BASE_DIR}/client/build`, // __dirname: webpack.config.js 파일이 위치한 경로
filename: 'bundle.js'
},
}