Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (29 sloc) 581 Bytes
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
mode: 'production',
entry: "./src/app.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "app.bundle.js"
},
plugins: [
new CopyWebpackPlugin([
{from:'src/assets',to:'assets'}
]),
],
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules)/,
use: {
loader: "babel-loader",
options: {
presets: ["babel-preset-env"]
}
}
}
]
}
};