Last active
February 18, 2018 23:32
-
-
Save stephencookdev/320fd86ff8bc7098bb83bb48bb9b384c to your computer and use it in GitHub Desktop.
Example webpack config (post SMP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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