Migrate netlify-cms-www site into this repo (#860)
* Add frontmatter to docs files (prep to move) * Move docs into position for website migration * Migrate website from netlify-cms-www Some modifications, including most of the changes in https://github.com/netlify/netlify-cms-www/pull/58 (previously reverted). Also updated the readme and added hugo-bin for quicker onboarding of new docs contributors. * Remove netlify.toml This allows separate build commands for cms-demo and netlifycms.org. * Remove website/netlify.toml May re-add later, but it's not doing anything for now. * Remove unused content file
This commit is contained in:
37
website/webpack.conf.js
Executable file
37
website/webpack.conf.js
Executable file
@ -0,0 +1,37 @@
|
||||
import webpack from "webpack";
|
||||
import path from "path";
|
||||
|
||||
export default {
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.((png)|(eot)|(woff)|(woff2)|(ttf)|(svg)|(gif))(\?v=\d+\.\d+\.\d+)?$/,
|
||||
loader: "file?name=/[hash].[ext]"
|
||||
},
|
||||
{test: /\.json$/, loader: "json-loader"},
|
||||
{
|
||||
loader: "babel",
|
||||
test: /\.js?$/,
|
||||
exclude: /node_modules/,
|
||||
query: {cacheDirectory: true}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin({
|
||||
"fetch": "imports?this=>global!exports?global.fetch!whatwg-fetch"
|
||||
})
|
||||
],
|
||||
|
||||
context: path.join(__dirname, "src"),
|
||||
entry: {
|
||||
app: ["./js/app"]
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, "dist"),
|
||||
publicPath: "/",
|
||||
filename: "[name].js"
|
||||
},
|
||||
externals: [/^vendor\/.+\.js$/]
|
||||
};
|
Reference in New Issue
Block a user