.github
__mocks__
example
img
scripts
src
website
config
site
src
.babelrc
.nvmrc
README.md
gulpfile.babel.js
package.json
webpack.conf.js
yarn.lock
.all-contributorsrc
.babelrc
.editorconfig
.eslintrc
.gitignore
.nvmrc
.stylelintrc
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
codecov.yml
package.json
postcss.config.js
setupTests.js
webpack.base.js
webpack.cli.js
webpack.dev.js
webpack.prod.js
yarn.lock
* 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
38 lines
793 B
JavaScript
Executable File
38 lines
793 B
JavaScript
Executable File
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$/]
|
|
};
|