Skip to content

Instantly share code, notes, and snippets.

@stephencookdev
Last active February 18, 2018 23:32
Show Gist options
  • Save stephencookdev/320fd86ff8bc7098bb83bb48bb9b384c to your computer and use it in GitHub Desktop.
Save stephencookdev/320fd86ff8bc7098bb83bb48bb9b384c to your computer and use it in GitHub Desktop.
Example webpack config (post SMP)
const ForceCaseSensitivityPlugin = require("force-case-sensitivity-webpack-plugin");
const ManifestPlugin = require("webpack-manifest-plugin");
const SpeedMeasurePlugin = require("speed-measure-webpack-plugin");
const smp = new SpeedMeasurePlugin();
module.exports = smp.wrap({
entry: {
app: ["./app.js"]
},
output: "./public",
module: {
rules: [
{
test: /\.js$/,
use: [{ loader: "babel-loader" }]
},
{
test: /\.coffee$/,
use: [{ loader: "coffee-loader" }]
}
]
},
plugins: [
new ForceCaseSensitivityPlugin(),
new ManifestPlugin()
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment