Skip to content

Instantly share code, notes, and snippets.

@marinho
Created November 2, 2016 20:56
Show Gist options
  • Save marinho/74c5bf800bce85cb1b48f746108fad15 to your computer and use it in GitHub Desktop.
Save marinho/74c5bf800bce85cb1b48f746108fad15 to your computer and use it in GitHub Desktop.
CopyWebpackPlugin not copying static files
const
webpack = require('webpack'),
path = require('path'),
fileSystem = require('fs'),
helpers = require('./config/helpers'),
HtmlWebpackPlugin = require('html-webpack-plugin'),
ExtractTextPlugin = require('extract-text-webpack-plugin'),
CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: {
devtools: './src/devtools.ts',
panel: './src/panel.ts'
},
output: {
path: path.join(__dirname, 'build'),
filename: '[name].js'
},
module: {
loaders: [
{ test: /\.ts$/, loaders: ['awesome-typescript-loader'] }
],
plugins: [
new CopyWebpackPlugin([
{ from: './src/**/*.html' },
{ from: './src/**/*.css' }
])
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment