Rollup and NPM related
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -6,10 +6,10 @@ import svelte from 'rollup-plugin-svelte'
|
||||
import babel from 'rollup-plugin-babel'
|
||||
// import { eslint } from 'rollup-plugin-eslint'
|
||||
// import browsersync from 'rollup-plugin-browsersync'
|
||||
import hmr from 'rollup-plugin-hot'
|
||||
// import hmr from 'rollup-plugin-hot'
|
||||
import sveltePreprocess from 'svelte-preprocess'
|
||||
import { terser } from 'rollup-plugin-terser'
|
||||
import config from 'sapper/config/rollup.js'
|
||||
import config from 'sapper/config/rollup'
|
||||
import pkg from './package.json'
|
||||
|
||||
// Define environment and things
|
||||
@@ -45,8 +45,7 @@ export default {
|
||||
dev,
|
||||
preprocess,
|
||||
hydratable: true,
|
||||
// emitCss: true,
|
||||
// css: css => css.write('public/bundle.css'),
|
||||
emitCss: true,
|
||||
// ...(!dev && {
|
||||
css: css => css.write('static/bundle.css', dev),
|
||||
// }),
|
||||
@@ -72,7 +71,7 @@ export default {
|
||||
// dev && eslint(),
|
||||
!dev && babel({
|
||||
extensions: ['.js', '.mjs', '.html', '.svelte'],
|
||||
exclude: ['node_modules/@babel/**'],
|
||||
exclude: ['*.scss', '*.css', 'node_modules/@babel/**'],
|
||||
runtimeHelpers: true
|
||||
}),
|
||||
// hot && hmr({
|
||||
|
||||
Reference in New Issue
Block a user