s4s-editor / ml2scratch /old /webpack /js.webpack.config.js
soiz1's picture
Upload 208 files
72c8f1c verified
raw
history blame
479 Bytes
const path = require('path')
const webpack = require('webpack')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
let app = './app';
let dist = '../dist';
module.exports = {
entry: {
scripts: app+'/javascripts/scripts.js',
},
output: {
filename: 'javascripts/[name].js',
path: __dirname + '/' + dist
},
devServer: {
contentBase: './dist',
port: 8080
},
plugins: [
new UglifyJsPlugin()
],
cache: true
};