Skip to content

Commit

Permalink
Webpack config is compatible with older versions of Node
Browse files Browse the repository at this point in the history
  • Loading branch information
brianblakely committed Mar 9, 2016
1 parent f9a9a53 commit ed5169f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const webpack = require(`webpack`);
var webpack = require('webpack');

module.exports = {
entry: `./nodep-date-input-polyfill.js`,
entry: './nodep-date-input-polyfill.js',

plugins: [
new webpack.optimize.UglifyJsPlugin({
mangle: {
except: [`$super`, `$`, `exports`, `require`]
except: ['$super', '$', 'exports', 'require']
},
compress: {
warnings: false
Expand All @@ -15,35 +15,35 @@ module.exports = {
],

resolve: {
extensions: [``, `.js`]
extensions: ['', '.js']
},

module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules)/,
loader: `babel`,
loader: 'babel',
query: {
plugins: [`transform-runtime`],
presets: [`es2015`, `stage-3`],
plugins: ['transform-runtime'],
presets: ['es2015', 'stage-3'],
cacheDirectory: true
}
},
{
test: /\.css$/,
loader: `style!css`
loader: 'style!css'
},
{
test: /\.scss$/,
loader: `style!css!sass`
loader: 'style!css!sass'
}
]
},

// devtool: `cheap-module-eval-source-map`,
// devtool: 'cheap-module-eval-source-map',
output: {
path: process.cwd()+`/`,
filename: `nodep-date-input-polyfill.dist.js`
path: process.cwd()+'/',
filename: 'nodep-date-input-polyfill.dist.js'
}
};

0 comments on commit ed5169f

Please sign in to comment.