Skip to content

Commit

Permalink
Use verbose "mount" configuration in CSA, make public directory static (
Browse files Browse the repository at this point in the history
#1894)

* update csa templates

* add staticHtml option

* Revert "add staticHtml option"

This reverts commit 4be0c5a.

* better format

* rename _dist_ to dist
  • Loading branch information
FredKSchott authored Dec 11, 2020
1 parent f72fe28 commit 21f2137
Show file tree
Hide file tree
Showing 20 changed files with 325 additions and 328 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const isTS = fs.existsSync(url.pathToFileURL(path.join(process.cwd(), 'tsconfig.

module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: ['@snowpack/plugin-babel', '@snowpack/plugin-dotenv'],
devOptions: {},
Expand Down
4 changes: 2 additions & 2 deletions create-snowpack-app/app-scripts-preact/snowpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const isTS = fs.existsSync(path.join(cwd, 'tsconfig.json'));

module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: ['@snowpack/plugin-babel', '@prefresh/snowpack', '@snowpack/plugin-dotenv'],
installOptions: {
Expand Down
4 changes: 2 additions & 2 deletions create-snowpack-app/app-scripts-react/snowpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const isTS = fs.existsSync(path.join(cwd, 'tsconfig.json'));

module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: [
'@snowpack/plugin-react-refresh',
Expand Down
4 changes: 2 additions & 2 deletions create-snowpack-app/app-scripts-svelte/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: ['@snowpack/plugin-svelte', '@snowpack/plugin-dotenv'],
};
4 changes: 2 additions & 2 deletions create-snowpack-app/app-scripts-vue/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: ['@snowpack/plugin-vue', '@snowpack/plugin-dotenv'],
};
4 changes: 2 additions & 2 deletions create-snowpack-app/app-template-11ty/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
_output: '/',
src: '/_dist_',
_output: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: [
['@snowpack/plugin-run-script', { cmd: 'eleventy', watch: '$1 --watch' }],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: ['@snowpack/plugin-typescript'],
install: [
Expand Down
4 changes: 2 additions & 2 deletions create-snowpack-app/app-template-blank/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: [
/* ... */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: [
'@snowpack/plugin-babel',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: ['@snowpack/plugin-babel', '@snowpack/plugin-dotenv'],
install: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: [
'@snowpack/plugin-dotenv',
Expand Down
4 changes: 2 additions & 2 deletions create-snowpack-app/app-template-preact/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: ['@snowpack/plugin-dotenv', '@prefresh/snowpack'],
install: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: [
'@snowpack/plugin-react-refresh',
Expand Down
4 changes: 2 additions & 2 deletions create-snowpack-app/app-template-react/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: ['@snowpack/plugin-react-refresh', '@snowpack/plugin-dotenv'],
install: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: [
'@snowpack/plugin-svelte',
Expand Down
4 changes: 2 additions & 2 deletions create-snowpack-app/app-template-svelte/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: [
'@snowpack/plugin-svelte',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: [
'@snowpack/plugin-vue',
Expand Down
4 changes: 2 additions & 2 deletions create-snowpack-app/app-template-vue/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
src: '/_dist_',
public: {url: '/', static: true},
src: {url: '/dist'},
},
plugins: ['@snowpack/plugin-vue', '@snowpack/plugin-dotenv'],
install: [
Expand Down
Loading

1 comment on commit 21f2137

@vercel
Copy link

@vercel vercel bot commented on 21f2137 Dec 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.